Delete Folder
delete_folderDelete an empty folder or label. Protected system folders (INBOX, Sent, Drafts, etc.) cannot be removed, and confirmation is required.
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 |