---
title: "Delete a service account"
method: DELETE
path: "/v1/team-management/service-accounts/{id}"
tags: ["Team"]
---

# Delete a service account

`DELETE /v1/team-management/service-accounts/{id}`

Permanently deletes the service account. Its key and secret stop working immediately. Tests it already ran stay in your history, still labelled with its identifier. Admin only.

## Path parameters

- `id` integer, required

## Response `204`

Delete a service account

- TestingbotEntitiesAckWithMessage — Testingbot_Entities_AckWithMessage model
  - `success` boolean, required — Whether the operation succeeded.
  - `message` string, required — Human-readable confirmation of what was done.

## Other responses

- `401` — Authentication required
- `403` — Caller is not a team admin
- `404` — Service account not found

---

[API](https://skmtc.net/testingbot/apis/testingbot-rest-api.md) · [All operations](https://skmtc.net/testingbot/apis/testingbot-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/testingbot/testingbot-rest-api/versions/eff607a49246/schema)
