empty_trash
Permanently deletes every trashed file in one drive, either your My Drive or a specified Shared Drive. Use it to clear storage irreversibly; deleted files cannot be restored.
Instructions
Permanently delete every trashed file in a single trash. This cannot
be undone — unlike delete_file's default (recoverable) trash
behavior, there is no restoring a file after this.
Args:
drive_id: If omitted (default), empties the caller's own My Drive
trash only. If set to a Shared Drive's ID (see list_drives),
empties that Shared Drive's trash instead. A single call only
ever targets one trash — to empty several Shared Drives' trash,
call this once per drive_id.
Returns: Confirmation that the trash was emptied, echoing which drive (drive_id, or None for My Drive) was targeted.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "empty_trash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drive_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||