delete_document
Removes documents by moving to trash with 30-day recovery or permanently deleting without recovery. Use to clean up workspace or remove sensitive information.
Instructions
Moves a document to trash or permanently deletes it.
IMPORTANT: When permanent=False (the default), documents are
moved to trash and retained for 30 days before being
permanently deleted. During this period, they can be restored
using the restore_document tool. Setting permanent=True
bypasses the trash and immediately deletes the document
without any recovery option.
Use this tool when you need to:
- Remove unwanted or unnecessary documents
- Delete obsolete content
- Clean up workspace by removing documents
- Permanently remove sensitive information (with permanent=True)
Args:
document_id: The document ID to delete
permanent: If True, permanently deletes the document without
recovery option
Returns:
Result message confirming deletion
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| permanent | No | ||
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |