DELETE/organization/projects/{project_id}/service_accounts/{service_account_id}

Delete project service account

Deletes a service account from the project.

Returns confirmation of service account deletion, or an error if the project is archived (archived projects have no service accounts).

2 parameters
project_idstringrequired
The ID of the project.
service_account_idstringrequired
The ID of the service account.

5 status codes
200Project service account deleted successfully.
objectstringrequired
Allowed:organization.project.service_account.deleted
idstringrequired
deletedbooleanrequired
400The request is invalid or the service account cannot be deleted in its current state.
errorobjectrequired
403The caller is not permitted to delete the service account.
errorobjectrequired
Details about the permission error.
404The project or service account was not found in the organization.
errorobjectrequired
429The request rate limit was exceeded.
errorobjectrequired

Error handling

A 400 is returned: The request is invalid or the service account cannot be deleted in its current state. A 403 is returned: The caller is not permitted to delete the service account. A 404 is returned: The project or service account was not found in the organization. A 429 is returned: The request rate limit was exceeded.