> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# permissions_delete

> Delete a permission. Concurrent permission writes on the same file are not supported.

<div className="tool-route"><span className="tool-row-method" data-method="DELETE">DELETE</span><code>{"https://www.googleapis.com/drive/v3/files/{fileId}/permissions/{permissionId}"}</code></div>

```python gdrive_permissions_delete.py theme={null}
from charter.packs import gdrive

result = await gdrive.permissions_delete.ainvoke({"fileId": ..., "permissionId": ...})
```

<Note>
  Requires `https://www.googleapis.com/auth/drive`. Costs 1 against the provider's own quota.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                                | Type     | Description                         |
  | -------------------------------------------------------------------- | -------- | ----------------------------------- |
  | `fileId` <span className="required" title="required">\*</span>       | `string` | The ID of the file or shared drive. |
  | `permissionId` <span className="required" title="required">\*</span> | `string` | The ID of the permission.           |
</div>

## Query parameters

<div className="reference-table">
  | Field                  | Type      | Description                                                                                                                                                                                                                                                                                                                                                             |
  | ---------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `useDomainAdminAccess` | `boolean` | 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 ID parameter refers to a shared drive. (2) The requester is an administrator of the domain to which the shared drive belongs. For more information, see Manage shared drives as domain administrators. |
  | `supportsAllDrives`    | `boolean` | Whether the requesting application supports both My Drives and shared drives.                                                                                                                                                                                                                                                                                           |
</div>
