Projects.hmacKeys: delete Stay organized with collections Save and categorize content based on your preferences.
Deletes an HMAC key.
For general information about HMAC keys in Cloud Storage, seeHMAC Keys.
Required permissions
In order to use this method, the authenticated user must have thestorage.hmacKeys.delete IAM permission for the project in which thekey exists.
Request
HTTP request
DELETE https://storage.googleapis.com/storage/v1/projects/projectIdentifier/hmacKeys/accessId
In addition tostandard query parameters, the following query parameters apply to this method.
To see an example of how to include query parameters in a request, see theJSON API Overview page.
Parameters
| Parameter name | Value | Description |
|---|---|---|
| Path parameters | ||
accessId | string | The access ID of the HMAC key to be deleted. |
projectIdentifier | string | The project ID or project number of the project that owns the service account of the specified HMAC key. |
Request body
Do not supply a request body with this method.
Response
If successful, this method returns an empty response body.
For information about status and error codes returned by this API, see thereference page.
Try it!
Use the APIs Explorer below to call this method on live data and see the response.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-19 UTC.