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)
ParameterDescription
idThe 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)
ParameterDescription
idThe ID of the message to trash or delete.
moveToTrashMoves the specified message to the trash if true, or permanently deletes if false.