IGmailClientAsync.DeleteMessageAsync
Contents
[
Hide
]DeleteMessageAsync(string, CancellationToken)
Asynchronously deletes a message by its ID, moving it to trash by default.
public Task DeleteMessageAsync(string id, CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| id | String | The message ID. |
| cancellationToken | CancellationToken | A cancellation token. |
Return Value
A task representing the asynchronous operation.
See Also
- interface IGmailClientAsync
- namespace Aspose.Email.Clients.Google
- assembly Aspose.Email
DeleteMessageAsync(string, bool, CancellationToken)
Asynchronously deletes a message by its ID, with an option to move to trash.
public Task DeleteMessageAsync(string id, bool moveToTrash,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| id | String | The message ID. |
| moveToTrash | Boolean | Whether to move the message to trash. |
| cancellationToken | CancellationToken | A cancellation token. |
Return Value
A task representing the asynchronous operation.
See Also
- interface IGmailClientAsync
- namespace Aspose.Email.Clients.Google
- assembly Aspose.Email