Delete Folder
delete_folderRemove an empty email folder or label after confirmation. System folders such as Inbox, Sent, and Trash remain protected from deletion.
Instructions
Delete an empty folder or label. Protected system folders (INBOX, Sent, Drafts, Trash, Spam, Archive, All Mail, Starred) cannot be deleted. Requires { confirmed: true }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | No | Must be true to execute when confirmation is required. | |
| account_id | No | Optional account ID to route this call to (multi-account configs). Omit to use the active account. Configured account IDs are listed in the settings UI (Accounts tab). | |
| folderName | Yes | Folder path to delete |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| success | Yes | ||
| messageId | No |