---
title: "DELETE /workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}"
method: DELETE
path: "/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}"
---

# DELETE /workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}

`DELETE /workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}`

Deletes a workspace service account from the workspace.

This will delete any tokens created for the service account, as well. If the tokens are currently in use, the will fail to authenticate / authorize after they are deleted.

Service accounts are only available for workspaces that are compatible with Grafana version 9 and above.

## Path parameters

- `serviceAccountId` string, required
- `workspaceId` string, required

## Response `200`

Success

- DeleteWorkspaceServiceAccountResponse
  - `serviceAccountId` string, required — The ID of the service account deleted.
  - `workspaceId` string, required — The ID of the workspace where the service account was deleted.

## Other responses

- `480` — ResourceNotFoundException
- `481` — ThrottlingException
- `482` — ConflictException
- `483` — ValidationException
- `484` — AccessDeniedException
- `485` — InternalServerException

---

[API](https://skmtc.net/aws/apis/grafana.md) · [All operations](https://skmtc.net/aws/apis/grafana/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/grafana/versions/76cc5bd3d508/schema)
