Deletes an API key. Deleted key can be retrieved within 30 days of deletion. Afterward, key will be purged from the project. NOTE: Key is a global resource; hence the only supported value for location is global.
Request
- Base URLhttps://apikeys.googleapis.com
- URLhttps://apikeys.googleapis.com/v2/{+name}
- Auth
- OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/apikeysAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/apikeys
- or OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/cloud-platformAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/cloud-platform
Path parameters
Required. The resource name of the API key to be deleted.
Query parameters
Optional. Defines the behavior for checking existing usage when deleting a key.
Optional. The etag known to the client for the expected state of the key. This is to be used for optimistic concurrency.
Response
Successful response
Changes
- breaking
removed the media type
*/*for the response with the status - info
the security scope
https://www.googleapis.com/auth/apikeyswas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/apikeyswas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas removed from the endpoint's security schemeOauth2c
- breaking
- info
the security scope
https://www.googleapis.com/auth/apikeyswas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/apikeyswas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas removed from the endpoint's security schemeOauth2c - info
added the new optional
queryrequest parametercheckExistingUsage
- info