Delete a folder
delete_folderDelete an EMPTY folder, and unsubscribe it so it does not linger as a phantom in the user's mail client. REFUSES a folder that still holds messages, and says how many - unlike delete_email there is no Trash to recover them from, so move them elsewhere with move_email or send them to Trash with delete_email first, then delete the empty folder. Also refuses a folder that has sub-folders inside it, refuses INBOX, and refuses Sent, Drafts, Trash, Junk and Archive. Read the refusal and tell the user what it says.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The folder to delete, e.g. "Old projects". |