---
title: "Delete user"
method: DELETE
path: "/api/ldap/user"
tags: ["User Management"]
---

# Delete user

`DELETE /api/ldap/user`

Delete a LDAP user and associated group. Home directory is backed up with timestamp suffix.

## Response `200`

User deleted successfully

- object
  - `success` boolean
  - `message` string

## Other responses

- `203` — User not found
- `400` — Invalid request or self-deletion attempt
- `500` — Internal server error

---

[API](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api.md) · [All operations](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/engineering-development-hub-edh-api/revisions/058396b8f0f1/schema)
