---
title: "Delete"
method: DELETE
path: "/service-accounts/{id}"
tags: ["service-accounts"]
---

# Delete

`DELETE /service-accounts/{id}`

## Request

- Base URL: `https://api.instruxi.dev/api/v1/enforcer`
- URL: `https://api.instruxi.dev/api/v1/enforcer/service-accounts/{id}`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

Soft-deletes a service account. Refused with 409 has_agent while an agent is bound — delete the agent instead.

## Path parameters

- `id` string, required

## Response `200`

OK

- InternalDeliveryHttpHandlerOKResponse
  - `success` boolean

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: has_agent

---

[API](https://skmtc.dev/instruxi/apis/enforcer-api.md) · [All operations](https://skmtc.dev/instruxi/apis/enforcer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/instruxi/apis/enforcer-api/revisions/fa82bc1becc0?raw)
