PUT - Empty Folder - Delete emails in the folder

 Purpose

The API helps to delete all the emails in the specified folder.

 Request URL 

https://mail.zoho.com/api/accounts/<accountID>/folders/<folderId>

 Request Parameters

ParameterData TypeDescription
accountID*LongThe unique Zoho Account number associated with the particular account.
folderId*LongThe Folder ID of the specific folder, which should be emptied.

* - Mandatory parameters

  Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
mode* String

 emptyFolder

The mode should be passed as emptyFolder to delete all the emails in the folder

* - Mandatory parameters

 Response Codes

Please refer Response Codes.

Sample Request

Copied{
    "mode":"emptyFolder"
}