| |||||
API Home >> Writer >> API Reference >> POST Method APIs
To trash an existing document i.e. move it to the trash folder.
| Field | Description |
| documentId | Unique ID of the existing document to be trashed. |
<form method="POST" action="http://export.writer.zoho.com/api/private/xml/trashDocument/[documentId]?apikey=[APIKEY]&ticket=[Ticket]">
<input type="submit" value="TrashDoc" class="divbutton" name="submit">
</form>
| Field | Description |
| documentId | Unique ID associated with the document that is being trashed. |
| documentName | Name of the trashed document that is being moved to trash folder. |
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/api/private/xml/trashDocument/8892000000009037">
<result>
<documentId>8892000000009037</documentId>
<documentName>Invoice</documentName>
</result>
</response>
{
"response":
{
"uri": "/api/private/json/trashDocument/8892000000009037",
"result":
{
"documentId":"8892000000068007",
"documentName":"Invoice"
}
}
}