delete_file
Move a file or folder to trash for recovery, or permanently delete it by file ID when removal is required. Permanent deletion cannot be undone.
Instructions
Move a file to the trash or permanently delete it.
Args: file_id: The ID of the file or folder to remove. permanent: If False (default), moves to trash (recoverable). If True, permanently deletes — this cannot be undone. Raises ValueError, without deleting anything, if the caller can't permanently delete the file (e.g. a Content manager on a Shared Drive, who can only trash).
Returns: Confirmation with fileId and action taken ('trashed' or 'deleted').
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": {
"file_id": "<file_id>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| permanent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||