---
title: "PATCH /v1/users/{userId}/delete"
method: PATCH
path: "/v1/users/{userId}/delete"
---

# PATCH /v1/users/{userId}/delete

`PATCH /v1/users/{userId}/delete`

Delete an admin user.

## Path parameters

- `userId` string, uuid, required — Id of the admin user.

## Response `200`

The admin account has been deleted.

- object
  - `id` string — The user id.

## Other responses

- `400` — Bad request.
- `401` — The user is not authorized to delete an admin account.
- `500` — An error occurred while deleting the admin account.

---

[API](https://skmtc.dev/nhs/apis/admin-api-nhs-innovation-service.md) · [All operations](https://skmtc.dev/nhs/apis/admin-api-nhs-innovation-service/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nhs/admin-api-nhs-innovation-service/revisions/9fac5748cbfb/schema)
