Serviceaccountkeys: delete

  • This method removes and invalidates specified credentials for an enterprise's service account, requiring prior retrieval and setup of the service account.

  • It is deprecated and will be inaccessible after September 30, 2025, with new integrations directed to alternative recommendations.

  • Authorization with the https://www.googleapis.com/auth/androidenterprise scope is necessary for using this method.

  • The request involves specifying the enterprise and key IDs as path parameters in a DELETE request to the provided URL.

  • Upon successful execution, the method returns an empty response body, signifying completion of the credential removal.

Removes and invalidates the specified credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.

Request

HTTP request

DELETE https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/serviceAccountKeys/keyId

Parameters

Parameter name Value Description
Path parameters
enterpriseId string The ID of the enterprise.
keyId string The ID of the key.

Authorization

This request requires authorization with the following scope:

Scope
https://www.googleapis.com/auth/androidenterprise

For more information, see the authentication and authorization page.

Request body

Do not supply a request body with this method.

Response

If successful, this method returns an empty response body.