---
title: "Delete an admin user"
method: DELETE
path: "/settings/users/{id}"
tags: ["Admin Settings: Users"]
---

# Delete an admin user

`DELETE /settings/users/{id}`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/settings/users/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/settings/users/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Refuses if the caller is deleting themselves or if this is the last admin.

## Path parameters

- `id` integer, required

## Response `200`

Admin deleted.

## Other responses

- `400`: Refused — self-delete or last admin.
- `404`: Admin not found.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
