Gdrive Delete File
gdrive_delete_fileDeletes a file or an empty folder from the synced Google Drive folder — Google Drive for Desktop syncs the deletion to the cloud (the item lands in Drive's trash). Deleting a .gdoc/.gsheet/.gslides pointer removes the real Google Doc/Sheet/Slides. Never deletes a folder that still has contents.
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": {
"path": "<path>"
},
"name": "gdrive_delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path under a Google Drive mount (use gdrive_root / gdrive_list_files to get one) | |
| confirm | No | Ignored; kept for older clients. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| type | Yes | What was deleted: file, folder, or google_doc_pointer | |
| deleted | Yes | True only when the folder listing no longer shows the item |