---
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

## Changes

- **2026-08-08** `684f94d47ca9` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/service-accounts/:serviceAccountId/delete.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) · [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/factory/factory-public-api/revisions/d0c014e1fdab/schema)
