Delete a Label
Purpose
This API is used to delete a specific label.
OAuth Scope
Use the scope
MailApps.tags.ALL (or) MailApps.tags.DELETE
ALL - Full access to labels
DELETE - Delete a label.
To generate Authtoken, refer here.
Request URL
Method: DELETE
https://mail360.zoho.com/api/accounts/{account_key}/labels/{labelid}
Path Parameters
- account_key* string
- This is a unique key used to identify the mailbox. It is generated during account addition.
- This parameter can be fetched from Get all accounts API.
- labelid* long
- This is a unique key used to identify the specific label. It is generated during label creation.
- This parameter can be fetched from Get all labels API.
Sample Request
Copiedcurl "https://mail360.zoho.com/api/accounts/x7**0s/labels/182024000000016004" \
-X DELETE \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken 8024329**b4ac3" \
Sample response
Copied{
"status": {
"code": 200,
"description": "success"
}
}