---
title: "Delete a user"
method: DELETE
path: "/users/{user_id}"
tags: ["Users"]
---

# Delete a user

`DELETE /users/{user_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/users/{user_id}`
- Auth: HTTP bearer

## Path parameters

- `user_id` integer, required

## Response `204`

User deleted successfully

## Other responses

- `401`: Unauthorized
- `403`: Forbidden - Cannot delete yourself or non-admin attempt
- `404`: User not found
- `500`: Internal server error

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
