Skip to main content

Delete email

Move a Gmail message to the trash, or delete it permanently.

Command in the Google Workspace toolkit · id ooa.google/gmail_delete_message · 4 inputs (2 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Message IDStringYesGmail message id from List Gmail messages.
PermanentBooleanNofalseDelete for good instead of moving to the trash (needs full mail access).
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.