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

# Delete user

`DELETE /users/{userId}`

Deletes a user account. Requires admin role. Cannot delete yourself.

## Path parameters

- `userId` string, required

## Response `204`

User deleted successfully

## Other responses

- `401` — Not authenticated
- `403` — Forbidden - requires admin role or cannot delete self
- `404` — User not found
- `default` — Unexpected error

## Changes

- **2026-07-23** (v1) `75b8e91aaf57` — 12 warning
  - added the new `conflict` enum value to the `code` response property for the response status `401`
  - added the new `conflict` enum value to the `code` response property for the response status `403`
  - added the new `conflict` enum value to the `code` response property for the response status `404`
  - added the new `conflict` enum value to the `code` response property for the response status `default`
  - …8 more
- **2026-05-24** (v1) `8a2d5d3e9608` — 4 warning
  - added the new `rate_limited` enum value to the `code` response property for the response status `401`
  - added the new `rate_limited` enum value to the `code` response property for the response status `403`
  - added the new `rate_limited` enum value to the `code` response property for the response status `404`
  - added the new `rate_limited` enum value to the `code` response property for the response status `default`
- **2026-04-30** (v1) `50e1d517afc1` — 4 info
  - removed the `rate_limited` enum value from the `code` response property for the response status `401`
  - removed the `rate_limited` enum value from the `code` response property for the response status `403`
  - removed the `rate_limited` enum value from the `code` response property for the response status `404`
  - removed the `rate_limited` enum value from the `code` response property for the response status `default`

[Change history](https://skmtc.dev/dagucloud/apis/dagu/changes/users/:userId/delete.md)

---

[API](https://skmtc.dev/dagucloud/apis/dagu.md) · [All operations](https://skmtc.dev/dagucloud/apis/dagu/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dagucloud/dagu/revisions/6f043af8f6d3/schema)
