Method: labels.revisions.permissions.delete
Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
HTTP request
DELETE https://drivelabels.googleapis.com/v2/{name=labels/*/revisions/*/permissions/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. Label Permission resource name.
|
Query parameters
Parameters |
useAdminAccess |
boolean
Set to true in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
|
Request body
The request body must be empty.
Response body
If successful, the response body is empty.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.admin.labels
For more information, see the Authorization guide.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-04 UTC.
[null,null,["Last updated 2024-09-04 UTC."],[[["This API deletes a specific permission for a Google Drive Label, impacting the entire Label resource and not requiring revisions or publishing."],["The request requires specifying the Label Permission resource name in the URL path and can utilize admin credentials with the `useAdminAccess` query parameter."],["The request body should be empty, and a successful deletion results in an empty response body."],["Authorization is necessary with either `https://www.googleapis.com/auth/drive.labels` or `https://www.googleapis.com/auth/drive.admin.labels` OAuth scopes."]]],["This document details how to delete a Label's permission via an HTTP DELETE request. The request URL, defined using gRPC Transcoding syntax, includes a required `name` path parameter specifying the Label Permission resource. An optional `useAdminAccess` query parameter allows for admin credential verification. The request body must be empty, and a successful deletion results in an empty response body. Authorization requires either the `drive.labels` or `drive.admin.labels` OAuth scope.\n"]]