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.
Note: This API is subject to throttle limits. For details on the applicable rate limits, please refer to this help link.

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