drive_unshare
Remove specified people or groups from a Google Drive file or folder's sharing list; all emails must currently have access, the owner cannot be removed, and confirm=true is required.
Instructions
Remove people's access to a file or folder (Manage access > person > Remove).
Every address must currently have access (else not_found and nothing is changed); the owner cannot be removed.
Requires confirm=true (outward-facing or destructive).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Exact item name in the current location (or in path). | |
| path | No | Folder holding the item ("/A/B" from My Drive, "A/B" relative); default: current. | |
| index | No | Index from the last drive.list / drive.search. | |
| emails | Yes | E-mail addresses of the people/groups to remove (as listed by drive.sharing). | |
| confirm | No | Must be true: this action is outward-facing or destructive. | |
| occurrence | No | Which item when several share the name (0 = first). |