Delete Template

Purpose

To delete the unwanted templates from the template list.

Quick Reference

PropertyValue
MethodDELETE
Request URLhttps://{zohoapis_domain}/writer/api/v1/templates/{template_id}/delete
ScopesZohoWriter.documentEditor.ALL, ZohoPC.files.ALL, WorkDrive.files.ALL, WorkDrive.organization.ALL, WorkDrive.workspace.ALL
Rate LimitSee Writer API throttle limits

Parameters

Path Parameters

ParameterData TypeMandatory/OptionalDescription
template_idStringMandatorySpecify the unique id for the template that needs to be deleted.

Notes

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."
}