Delete a Drive file
delete_drive_fileDestructiveIdempotent
Delete a Google Drive file by file ID, sending it to Trash (recoverable) or permanently deleting it with confirmation.
Instructions
Delete a Drive file. By default it goes to Trash (recoverable); pass permanent:true to delete it forever. Pass fileId (from list_drive_files) + confirm:true. Irreversible when permanent — confirm with the user first.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | the Drive file id | |
| confirm | No | REQUIRED true | |
| permanent | No | true = delete forever; default trashes (recoverable) |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| fileId | No | ||
| deleted | No |