# Method: tagKeys.delete

- [HTTP request](https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys/delete#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys/delete#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys/delete#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys/delete#body.request_body)
- [Response body](https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys/delete#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys/delete#body.aspect)
- [Try it!](https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys/delete#try-it)

Deletes a TagKey. The TagKey cannot be deleted if it has any child TagValues.

### HTTP request

`DELETE https://cloudresourcemanager.googleapis.com/v3/{name=tagKeys/*}`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The resource name of a TagKey to be deleted in the format `tagKeys/123`. The TagKey cannot be a parent of any existing TagValues or it will not be deleted successfully. |

### Query parameters

| Parameters ||
|---|---|
| `validateOnly` | `boolean` Optional. Set as true to perform validations necessary for deletion, but not actually perform the action. |
| `etag` | `string` Optional. The etag known to the client for the expected state of the TagKey. This is to be used for optimistic concurrency. |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/resource-manager/reference/rest/Shared.Types/Operation`.

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).