Method: accounts.labels.delete

  • This page provides documentation on how to delete a label and remove it from all assigned accounts.

  • The deletion is performed using an HTTP DELETE request to a specific URL containing the account and label information.

  • The request body must be empty, and a successful response will return an empty JSON object.

  • This action requires authorization using the https://www.googleapis.com/auth/content OAuth scope.

Deletes a label and removes it from all accounts to which it was assigned.

HTTP request

DELETE https://css.googleapis.com/v1/{name=accounts/*/labels/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the label to delete. Format: accounts/{account}/labels/{label}

Request body

The request body must be empty.

Response body

If successful, the response body is an empty JSON object.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/content

For more information, see the OAuth 2.0 Overview.