DeleteMessage
DeleteMessage (1 of 2)
Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer overriding method DeleteMessage with parameter moveToTrash instead.
Returns: virtual void Aspose::Email::Clients::Google::
DeleteMessage(System::String id)
| Parameter | Description |
|---|---|
| id | The ID of the message to delete. |
DeleteMessage (2 of 2)
Moves the specified message to the trash if moveToTrash true, or permanently deletes if false.
Returns: virtual void Aspose::Email::Clients::Google::
DeleteMessage(System::String id, bool moveToTrash)
| Parameter | Description |
|---|---|
| id | The ID of the message to trash or delete. |
| moveToTrash | Moves the specified message to the trash if true, or permanently deletes if false. |