---
title: "Delete User"
method: DELETE
path: "/api/users/{username}"
tags: ["Users"]
---

# Delete User

`DELETE /api/users/{username}`

## Path parameters

- `username` string, required

## Response `200`

User deleted

- User
  - `username` string — Username of the user.
  - `scope` 'admin' | 'install' | 'update' | 'read'
  - `totp_enabled` boolean — Whether two-factor authentication is enabled/required using TOTP.

## Changes

- **2024-11-07** `0caa21a70faf` — 1 info
  - added the optional property `totp_enabled` to the response with the `200` status
- **2024-11-06** `e06d9f9dee25` — 1 warning, 1 info
  - removed the optional property `roles` from the response with the `200` status
  - added the optional property `scope` to the response with the `200` status
- **2024-11-02** `f68de1bd16a3` — 1 info
  - added the optional property `roles` to the response with the `200` status
- **2020-07-23** `42c41034504b` — 4 warning, 2 info
  - removed the optional property `limited` from the response with the `200` status
  - removed the optional property `passkey` from the response with the `200` status
  - removed the optional property `scope` from the response with the `200` status
  - removed the optional property `totp_enabled` from the response with the `200` status
  - …2 more

[Change history](https://skmtc.dev/contao/apis/contao-manager-api/changes/api/users/:username/delete.md)

---

[API](https://skmtc.dev/contao/apis/contao-manager-api.md) · [All operations](https://skmtc.dev/contao/apis/contao-manager-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/contao/contao-manager-api/revisions/f3f0ed40c70a/schema)
