---
title: "admDeleteFilter"
canonical: "https://support.appfire.com/space/PSJ/15487540/admDeleteFilter"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admDeleteFilter(filterId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Deletes the filter with the specified id.

Deletes the filter with the specified id.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| filterId | number | Yes | The filter id. |

## Return Type

**Boolean (true/false)**

Returns true if the filter was successfully deleted.

## Example

```
number filterId = 10000;
boolean b = admDeleteFilter(filterId);
return b;
```

**Result**: This will return true if the filter corresponding to the id 10000 will be deleted. False otherwise.

## See also

> Macro (contentbylabel)