delete_document
Delete documents with option to trash for 30-day retention or permanent removal without recovery. Useful for cleaning up obsolete or sensitive content.
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 |
|---|---|---|---|
| document_id | Yes | ||
| permanent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |