---
title: "IGraphClientAsync.DeleteAttachmentAsync"
url: "https://reference.aspose.com/email/net/aspose.email.clients.graph/igraphclientasync/deleteattachmentasync/"
product: "Aspose.Email for .NET API Reference"
description: "IGraphClientAsync method. Asynchronously deletes an attachment by its ID"
---

## IGraphClientAsync.DeleteAttachmentAsync method

Asynchronously deletes an attachment by its ID.

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

| Parameter | Type | Description |
| --- | --- | --- |
| id | String | The ID of the attachment to delete. |
| cancellationToken | CancellationToken | A cancellation token to observe while waiting for the task to complete. |

### Return Value

A task that represents the asynchronous delete operation.

### See Also

* interface [IGraphClientAsync](../)
* namespace [Aspose.Email.Clients.Graph](../../igraphclientasync/)
* assembly [Aspose.Email](../../../)


