Delete a Folder

Purpose 

This API is used to delete a folder.

OAuth Scope

Use the scope

MailApps.folders.ALL (or) MailApps.folders.DELETE

ALL - Full access to folders.

DELETE - Delete a folder.

To generate Authtoken, refer here.

Request URL

Method: DELETE

https://mail360.zoho.com/api/accounts/{account_key}/folders/{folderId}

Path Parameters

  • account_key* string
    • This key is used to identify the mailbox from which the data has to be fetched. It is generated during account addition.
    • This parameter can be fetched from Get all accounts API.
  • folderId* long
    • This parameter refers to the ID of the folder to be deleted.
    • This parameter can be fetched from Get all folders API.

Sample Request

Copiedcurl "https://mail360.zoho.com/api/accounts/N7A**C0CM/folders/23**008001" \
-X DELETE \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken **" \

Sample Response

Copied{
    "status": {
        "code": 200,
        "description": "success"
    }
}