gmail_delete_forever
Permanently delete Gmail conversations from Trash or Spam to purge them irreversibly; requires confirm=true.
Instructions
Permanently delete conversations that are in the Trash or Spam (cannot be undone).
Only conversations listed in the Trash or Spam folder (default: Trash), or in a search restricted to them ('in:trash ...' / 'in:spam ...'), can be targeted. Some Gmail builds (e.g. Workspace accounts) offer no per-conversation 'Delete forever'; the op then fails with not_found and gmail.empty is the only way to purge.
Requires confirm=true (outward-facing or destructive).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Act on EVERY conversation of the query/folder list (Gmail's 'Select all' after loading the whole list; repeated until the list is empty for actions that remove conversations from it). Needs query or folder; no index/indexes/match. | |
| index | No | Row index from gmail.list / gmail.search (0 = first row). | |
| match | No | Select every row whose subject contains this text (case-insensitive). | |
| query | No | Run this Gmail search first and take the rows from its results. | |
| folder | No | Open this folder/label first and take the rows from it. | Trash |
| confirm | No | Must be true: this action is outward-facing or destructive. | |
| indexes | No | Several row indexes (multi-selection). | |
| max_rows | No | With match, look at most at this many rows from the top. |