Delete a folder
DELETE/api/accounts/:accountId/folders/:folder
Permanently deletes the folder and the messages in it with IMAP DELETE; nothing is moved to Trash.
The server does not check capabilities, so deleting special folders is left to the IMAP server. A refusal, or a folder that does not exist, returns 424.
Request
Responses
- 204
- 401
- 404
- 424
Deleted.
The session has no mailbox access token. code is mail_token_missing; sign in again.
The account does not exist or belongs to another user.
The IMAP, SMTP or Sieve server, or the platform, refused the request or could not be reached.