---
title: "IGmailClientAsync.DeleteFilterAsync"
url: "https://reference.aspose.com/email/net/aspose.email.clients.google/igmailclientasync/deletefilterasync/"
product: "Aspose.Email for .NET API Reference"
description: "IGmailClientAsync method. Asynchronously deletes a Gmail filter by its ID"
---

## IGmailClientAsync.DeleteFilterAsync method

Asynchronously deletes a Gmail filter by its ID.

```csharp
public Task DeleteFilterAsync(string id, CancellationToken cancellationToken = default)
```

| Parameter | Type | Description |
| --- | --- | --- |
| id | String | The filter ID. |
| cancellationToken | CancellationToken | A cancellation token. |

### Return Value

A task representing the asynchronous operation.

### See Also

* interface [IGmailClientAsync](../)
* namespace [Aspose.Email.Clients.Google](../../igmailclientasync/)
* assembly [Aspose.Email](../../../)


