Skip to main content
Glama

drive.permissions.delete

Removes a permission from a Google Drive file or shared drive, revoking a user's or group's access. Specify the file ID and permission ID to delete sharing rights.

Instructions

Deletes a permission. For more information, see Share files, folders, and drives. Warning: Concurrent permission modifications (such as update or delete) on the same file, folder, or shared drive aren't supported across any users or clients; only the last update is applied [HTTP DELETE] — removes the resource; irreversible unless the API documents a trash/undo flow; refused under --readonly safety profiles. Returns the post-delete resource state (or empty) as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: create, get, list, update.

Input Schema

NameRequiredDescriptionDefault
queryNoExtra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe.
fileIdYes[URL path segment] The ID of the file or shared drive.
paramsNoParameter map merged into the request; typed parameters win.
dry_runNoReturn the request that would be sent, without sending it.
body_fileNoRead the request body from this file ('-' for stdin) instead of building one from the parameters.
permissionIdYes[URL path segment] The ID of the permission.
supportsAllDrivesNo[query parameter] Whether the requesting application supports both My Drives and shared drives.false
supportsTeamDrivesNo[query parameter] Deprecated: Use `supportsAllDrives` instead.false
useDomainAdminAccessNo[query parameter] Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file false
enforceExpansiveAccessNo[query parameter] Deprecated: All requests use the expansive access rules.false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / enforceExpansiveAccess / default
      Added value: +"false"
    • changedInput schema / properties / enforceExpansiveAccess / description
      Previous value: -"Deprecated: All requests use the expansive access rules."New value: +"[query parameter] Deprecated: All requests use the expansive access rules."
    • changedInput schema / properties / fileId / description
      Previous value: -"The ID of the file or shared drive."New value: +"[URL path segment] The ID of the file or shared drive."
    • changedInput schema / properties / permissionId / description
      Previous value: -"The ID of the permission."New value: +"[URL path segment] The ID of the permission."
    • addedInput schema / properties / supportsAllDrives / default
      Added value: +"false"
    • changedInput schema / properties / supportsAllDrives / description
      Previous value: -"Whether the requesting application supports both My Drives and shared drives."New value: +"[query parameter] Whether the requesting application supports both My Drives and shared drives."
    • addedInput schema / properties / supportsTeamDrives / default
      Added value: +"false"
    • changedInput schema / properties / supportsTeamDrives / description
      Previous value: -"Deprecated: Use `supportsAllDrives` instead."New value: +"[query parameter] Deprecated: Use `supportsAllDrives` instead."
    • addedInput schema / properties / useDomainAdminAccess / default
      Added value: +"false"
    • changedInput schema / properties / useDomainAdminAccess / description
      Previous value: -"Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file "New value: +"[query parameter] Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file "
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations at all, the description carries the full burden and does meaningful work: it flags irreversibility, warns that concurrent permission modifications are last-write-wins, notes refusal under read-only safety profiles, and describes the returned payload and how the request body is sourced. It omits authorization requirements and whether deletion is allowed for the last remaining owner, which are the biggest practical hazards for this call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The critical content is front-loaded, but the body is padded with templated boilerplate ("[HTTP DELETE] — removes the resource", "irreversible unless the API documents a trash/undo flow") and a long parenthetical on request-body construction that adds little for a call with no meaningful body. Several clauses could be cut without loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter mutation with no annotations and no output schema, the description covers the safety profile, the concurrency hazard, and the return value, which is most of what an agent needs. Gaps remain around auth/ownership preconditions and the fact that the response is typically empty, which matters given there is no output schema to clarify it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both required path parameters and every query flag are already documented in the schema. The description only adds the typed-parameters-win-over-`params` and `body_file` mechanics, which the schema already states, so it stays at the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ("Deletes a permission") and closes by naming the sibling operations on the same resource (create, get, list, update), so an agent can place it in the family. It never states that the permission is scoped to a file/folder/drive, leaving the object of the deletion implicit until the schema is read.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the sibling list hints that update should be used to modify rather than remove a permission, and the `--readonly` note indicates it is refused in read-only profiles. There is no explicit statement of when to choose delete over update, nor any precondition (e.g., ownership/admin rights) an agent should check first.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools