deleteFile
Moves Google Drive files or folders to trash, or permanently deletes them with permanent=true for irreversible removal.
Instructions
Moves a file or folder to the trash, or permanently deletes it. Set permanent=true for irreversible deletion.
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": {
"fileId": "<fileId>"
},
"name": "deleteFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The file or folder ID from a Google Drive URL or a previous tool result. | |
| permanent | No | If true, permanently deletes the file instead of moving it to trash. | |
| readHandle | No | Capability returned by the corresponding read tool. Required on the modern MCP runtime, including modern stdio. |