drive_trash
Moves a file or folder to Trash for restorable deletion within 30 days; requires confirm=true to prevent accidental destructive actions.
Instructions
Move a file or folder to the Trash (restorable with drive.restore for 30 days).
Requires confirm=true (outward-facing or destructive).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Exact item name in the current location (or in path). | |
| path | No | Folder holding the item ("/A/B" from My Drive, "A/B" relative); default: current. | |
| index | No | Index from the last drive.list / drive.search. | |
| confirm | No | Must be true: this action is outward-facing or destructive. | |
| occurrence | No | Which item when several share the name (0 = first). |