Drive Delete File
drive_delete_fileRemove a Drive file or folder by moving it to trash for reversible cleanup, or delete it permanently after confirmation. Use trash mode by default to keep recovery possible.
Instructions
Delete a Drive file or folder: move it to the trash (default) or delete it permanently. Prefer the default trash mode, which is reversible from Drive's trash; to only revoke someone's access use drive_unshare_file instead. Returns status 'ok' with mode 'trash' and file (id, name, kind, mime_type, size, size_bytes, parent_ids, drive_id, web_url, trashed; null where the change does not report it), or mode 'permanent' and file_id. A permanent delete cannot be undone, asks the user to confirm first and returns status 'cancelled' if they decline.
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": "drive_delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | Drive file ID: the id field of Drive and search_workspace results, or the long ID in a Drive, Docs, Sheets or Slides URL. | |
| delete_mode | No | 'trash' moves the file to Drive's trash, where it can be restored; 'permanent' deletes it irreversibly after asking the user to confirm. | trash |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| mode | No | ||
| status | No | Machine-readable operation status. | |
| file_id | No |