Move Document to Trash

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Moves a document to the Trash.

Endpoints

OAuth Scope

ZohoWriter.documentEditor.ALLWorkDrive.files.ALLWorkDrive.organization.ALLWorkDrive.workspace.ALLCopied!

Request Example

cURL
cURL
Deluge
Copied!
curl --request DELETE \
  --url https://www.zohoapis.com/writer/api/v1/documents/a1b2c3d4e5f6g7h8i9/trash \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52'

Path Parameters

document_idstring(Required)

The unique ID of the document to move to Trash.

Response Example

200
Copied!
  {
    "result": "success",
    "message": "Document has been trashed successfully.",
    "retention_data": {
      "trash_retention_days": 30,
      "delete_retention_days": 60
    }
  }
                
Show full