[Webinar] Zoho Writer for the manufacturing industry. Register Now

Skip to main content

Trash Document

Purpose 

To move the unwanted document to Trash. The documents inside Trash can be restored in future if required.

HTTP Request URL

https://{zohoapis_domain}/writer/api/v1/documents/{{document_id}}/trash

Path Parameters

ParameterData TypeDescription
Mandatory Parameter
document_idStringSpecify the unique id for the document to be trashed.

Sample Request

Copiedcurl "https://www.zohoapis.com/writer/api/v1/documents/awniqbcfde295a1cf4524af1dd844d403b6ed/trash"
-X DELETE
-H "Authorization: Zoho-oauthtoken xyz"

Sample Response

Copied{
  "result": "success",
  "message": "Document has been trashed successfully."
}