---
title: "Delete User"
method: DELETE
path: "/api/v1/admin/users/{user_id}"
tags: ["admin"]
---

# Delete User

`DELETE /api/v1/admin/users/{user_id}`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/admin/users/{user_id}`
- Auth: none declared

Delete a user and all their data (Admin-only).

Protection:
- Cannot delete initial admin (is_initial_admin=True)
- Cannot delete last remaining admin
- Cannot delete your own account

Issue #166: System Admin protection

Deletes memories, API keys, OAuth2 clients, Qdrant collection, and user account.

## Path parameters

- `user_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/aa9df1a21db9?raw)
