Delete Template
Purpose
To delete the unwanted templates from the template list.
Quick Reference
| Property | Value |
|---|---|
| Method | DELETE |
| Request URL | https://{zohoapis_domain}/writer/api/v1/templates/{template_id}/delete |
| Scopes | ZohoWriter.documentEditor.ALL, ZohoPC.files.ALL, WorkDrive.files.ALL, WorkDrive.organization.ALL, WorkDrive.workspace.ALL |
| Rate Limit | See Writer API throttle limits |
Parameters
Path Parameters
| Parameter | Data Type | Mandatory/Optional | Description |
|---|---|---|---|
| template_id | String | Mandatory | Specify the unique id for the template that needs to be deleted. |
Notes
- For possible errors, refer to error codes.
Sample Request
Copiedcurl -X DELETE "https://www.zohoapis.com/writer/api/v1/templates/{template_id}/delete" \
-H "Authorization: Zoho-oauthtoken <ACCESS_TOKEN>"
Copiedresponse = invokeurl
[
url :"https://www.zohoapis.com/writer/api/v1/templates/{template_id}/delete"
type :DELETE
connection:"<connection_name>"
];
info response;Sample Response
Copied{
"deleted_by": {
"email_id": "amelia@zohocorp.com",
"profile_photo": "https://contacts.zoho.com/file?t=user&ID=1247393&fs=thumb",
"user_id": "1247393",
"timezone": "Asia/Kolkata",
"language": "en",
"display_name": "Amelia"
},
"message": "Template has been deleted successfully."
}