Delete Gmail Email
You can select this activity to delete emails from a Gmail mailbox.
This table lists the properties for the activity.
| Property Type | Property Name | Data Type | Description |
|---|---|---|---|
| Input | Mail Item | InArgument<Mail> | The email message to delete. This field is mandatory. |
| Input | Delete Permanently | Boolean | Indicates whether to delete emails permanently. |
| Common | Continue on error | Boolean | Set to True for continuing the workflow even if the activity fails. The default value is set to True. |
| Output | Response code | OutArgument<Int32> | Response code for the activity. |
Activity behavior
Review this behavior of the activity when deleting messages:
- If the value in the Delete Permanently is set to False, the activity moves the message to the Gmail Trash.
- If the value in the Delete Permanently is set to True, the activity permanently deletes the message.
- If the operation is completed successfully, the Response Code is 200.
- If an error occurs, the Response Code is 500.
Note: Permanent deletion cannot be reversed. Proceed with caution.