GraphClient.DeleteMessageAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Graph.dll (version 7.0.9119)
DeleteMessageAsync(GraphMessageId)
Begins asynchronous DeleteMessage operation. Deletes a message with the specified ID.
Declaration
public Task DeleteMessageAsync(GraphMessageId id)
Parameters
Type | Name | Description |
---|---|---|
Graph |
id | ID of a message to delete. |
Returns
Type | Description |
---|---|
Task |
Remarks
The message is soft-deleted, which means it is moved to the Deletions subfolder of the Recoverable Items folder (accessed using Deletions).
The message is hard-deleted (permanently), based on retention period of the mailbox, which is by default 14 days.