IGmailClient.DeleteMessage

DeleteMessage(string, bool)

Moves the specified message to the trash if moveToTrash true, or permanently deletes if false.

public void DeleteMessage(string id, bool moveToTrash)
ParameterTypeDescription
idStringThe ID of the message to trash or delete.
moveToTrashBooleanMoves the specified message to the trash if true, or permanently deletes if false.

See Also


DeleteMessage(string)

Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer overriding method DeleteMessage with parameter moveToTrash instead.

public void DeleteMessage(string id)
ParameterTypeDescription
idStringThe ID of the message to delete.

See Also