empty_folder
Delete all messages in a folder permanently. Intended for cleaning Trash or Spam, with a confirmation step to preview before deletion.
Instructions
Permanently delete ALL messages in a folder. This action is irreversible. Only available when PROTONMAIL_ALLOW_EMPTY_FOLDER=true. Use with caution — typically for Trash or Spam cleanup. Returns the number of messages deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | Folder path to empty (e.g. 'Trash', 'Spam'). | |
| confirmed | No | Must be true to execute. Call with confirmed:false first to see a preview of what would be deleted. |