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. First call returns a preview of what was actually found at that path; pass confirm=true to delete.
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 | Must be true to actually delete |
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 |