drive_permissions_delete
Revoke a file permission by providing file ID and permission ID to remove access for a user, group, or domain. Use drive_permissions_list to get permission ID.
Instructions
Revoke a permission from a file, removing that user's/group's/domain's access. Per the Drive API: concurrent permissions operations on the same file aren't supported, only the last update is applied.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fileId": "<fileId>",
"permissionId": "<permissionId>"
},
"name": "drive_permissions_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The file the permission belongs to | |
| permissionId | Yes | The permission to revoke (get it from drive_permissions_list) |