---
title: "Delete a service account"
method: DELETE
path: "/api/v0/service-accounts/{serviceAccountId}"
tags: ["Service Accounts"]
---

# Delete a service account

`DELETE /api/v0/service-accounts/{serviceAccountId}`

Soft-deletes a service account. Tears down all computers owned by the SA and purges stored git credentials (best-effort). Requires human authentication with a Manager role or higher; service account credentials are rejected.

## Path parameters

- `serviceAccountId` string, required — Service account ID

## Response `200`

Response for status 200

- DeleteServiceAccount200ResponseBody
  - `id` string, required — Service account ID that was deleted
  - `deleted` true, required — Always true; present so clients can distinguish a 200 delete from a 200 get

## Other responses

- `401` — Response for status 401
- `403` — Response for status 403
- `404` — Response for status 404
- `500` — Response for status 500

---

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