---
title: "Delete your own admin account (password-confirmed)"
method: POST
path: "/settings/users/delete-self"
tags: ["Admin Settings: Users"]
---

# Delete your own admin account (password-confirmed)

`POST /settings/users/delete-self`

## Request

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

Deletes the authenticated admin (the owner of the calling token) after re-confirming their password. Refuses if this is the last remaining admin (400) or the password is wrong (422).

## Request body

- object
  - `password` string, required

## Response `200`

Account deleted.

## Other responses

- `400`: Last remaining admin cannot be deleted.
- `422`: Missing or incorrect password.

---

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