# Delete service account in organization

`DELETE /v1/organizations/{organization}/serviceAccounts/{serviceAccount}`, operation `serviceAccounts.DeleteServiceAccountInOrganization`

Deletes a service account, with its keys. Everything granted to it is removed.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `organization` | path | Yes | `string` | The organization's ID. |
| `serviceAccount` | path | Yes | `string` | The service account's ID. |
| `force` | query | No | `boolean` | Deletes the account even if it has keys, deleting them too. Without it, deleting an account with keys fails with failed_precondition. |

## Responses

### 204

No Content

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.