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
Parameter | Data Type | Description |
accountID* | Long | The unique Zoho Account number associated with the particular account. |
folderId* | Long | The Folder ID of the specific folder, which should be emptied. |
* - Mandatory parameters
Request Body (JSON Object)
Parameter | Data Type | Allowed Values | Description |
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"
}