For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delete folder

Delete a folder and all of its subfolders.

Delete folder

delete

Delete a folder and all of its subfolders.

Authorizations
AuthorizationstringRequired

Bearer authentication using API tokens in the Authorization header.

Path parameters
mailboxResourceIdstringRequired

Resource ID of the managed mailbox the bearer token is authorized for.

Example: AC1a2b3c4d5e6f7g
folderstringRequired

Folder path to delete (URL-encoded).

Example: INBOX.OldName
Responses
204

Folder and all subfolders deleted.

No content

delete/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}
DELETE /api/v1/mailboxes/{mailboxResourceId}/folders/{folder} HTTP/1.1
Host: api.mail.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated

Was this helpful?