delete_label
Permanently remove a Proton label while leaving all messages untouched in their other folders or labels. Clean up unused labels under the Labels namespace.
Instructions
Delete a Proton label (IMAP folder under Labels/ namespace). Deletes the label itself, not the messages — they remain in their other folders/labels. Irreversible. For deleting a folder use delete_folder with a Folders/ prefix.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label name to delete. The Labels/ prefix is optional and will be added automatically. | |
| confirmed | No | Pass true to confirm permanent deletion of the label. Required when PROTONMAIL_CONFIRM_DESTRUCTIVE is enabled. |