Delete a Folder

Purpose

This API is used to delete a specific folder in a specific account, using the account ID and the folder ID.

OAuth Scope

Use the scope

ZohoMail.folders.ALL (or) ZohoMail.folders.DELETE

to generate the Authtoken.

ALL - Full access to folders.

DELETE - Delete a folder.

Request URL

Method: GET

https://mail.zoho.com/api/accounts/{accountId}/folders/{folderId}

Path Parameters

  • accountId* long
    • This key is used to identify the account from which the folder has to be fetched. It is generated during account addition.
    • This parameter can be fetched from Get all accounts API.
  • folderId* long
    • This key is used to identify the folder to be deleted.
    • This parameter can be fetched from Get all folders API.

 

* - Mandatory parameter

Response Codes

Refer here for the response codes and their meaning.

Sample Request

Copiedcurl "https://mail.zoho.com/api/accounts/9999****00293/folders/23567***005" \
-X DELETE \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken ***" \