Delete a document
tp_delete_documentMoves one document to the Trash of the user's TransformPipe account, where it is kept for 14 days and then deleted for good. Use it when the user asks to delete or remove a specific document. A shared link to the document stops working at once; tp_restore_document puts the document back, link and all, within the 14 days. confirm: true is required and is set after the user has named the document and agreed to delete it; without it nothing is deleted and the response shows which document would be deleted. To delete a folder together with its documents, call tp_delete_folder with with_documents: true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"confirm": "<confirm>"
},
"name": "tp_delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id from tp_list_documents. | |
| confirm | Yes | Set true after the user has asked for this document to be deleted. |