GOOGLESUPER_EMPTY_TRASH
Tool to permanently delete all of the user's trashed files. Use when you want to empty the trash in Google Drive. This action allows you to permanently remove all files that are currently in the trash of Google Drive. It can be applied to files in both the user's root trash and shared drives, ens...
This record as markdown: /tools/googlesuper/googlesuper-empty-trash.md
What GOOGLESUPER_EMPTY_TRASH does on Google Super
AI agents call GOOGLESUPER_EMPTY_TRASH to permanently remove resources in Google Super, typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.
| Parameter | Type | Required | Description |
|---|---|---|---|
driveId | string | — | If set, empties the trash of the provided shared drive. This parameter is ignored if the item is not in a shared drive. |
enforceSingleParent | boolean | — | Deprecated: If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root. This |
Parameters from the server's own tool schema.
Why GOOGLESUPER_EMPTY_TRASH is rated Critical
This tool irreversibly deletes data at scale (all trashed files across root trash and shared drives). Once executed, deleted files cannot be recovered through normal means. The blast radius is significant as it can destroy multiple files in a single operation. This is unambiguously a Destructive action, more severe than Write or Execute.
From the tool's definition Tool description explicitly states: 'permanently delete all of the user's trashed files' and 'permanently remove all files that are currently in the trash'. The use of 'permanently' twice and 'empty the trash' clearly indicate irreversible deletion.
Risk signalsBulk/mass operation — affects multiple targets · Admin/system-level operation
Attacks that exploit this kind of access
The rule that runs GOOGLESUPER_EMPTY_TRASH safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Google Super, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For GOOGLESUPER_EMPTY_TRASH, this is the rule to start with:
GOOGLESUPER_EMPTY_TRASH is removed from the agent's tool list entirely, so the agent never calls it. The rest of the server keeps working.
The button opens the PolicyLayer dashboard: create your workspace, connect Google Super, apply this rule, and every GOOGLESUPER_EMPTY_TRASH call is checked against it from then on.
Questions about GOOGLESUPER_EMPTY_TRASH
Tool to permanently delete all of the user's trashed files. Use when you want to empty the trash in Google Drive. This action allows you to permanently remove all files that are currently in the trash of Google Drive. It can be applied to files in both the user's root trash and shared drives, ensuring a complete removal of unwanted files. It is categorised as a Destructive tool in the Google Super MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.
GOOGLESUPER_EMPTY_TRASH accepts 2 parameters: driveId, enforceSingleParent. The full parameter table on this page comes from the server's own tool schema.
Register the Google Super MCP server in PolicyLayer and add a rule for GOOGLESUPER_EMPTY_TRASH: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Google Super. Nothing to install.
GOOGLESUPER_EMPTY_TRASH is a Destructive tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the GOOGLESUPER_EMPTY_TRASH rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for GOOGLESUPER_EMPTY_TRASH. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
GOOGLESUPER_EMPTY_TRASH is provided by the Google Super MCP server (googlesuper). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Google Super, and thousands of servers like it.
Across the catalogue