---
title: "Delete Account"
method: DELETE
path: "/settings/account"
tags: ["Settings"]
---

# Delete Account

`DELETE /settings/account`

Delete a user's account by removing it from the database.
If user_id is provided, requires admin role to delete that user.
Otherwise, deletes the current user's own account.

If merge_into_email is provided, all content from the deleted user
will be transferred to the user with that email before deletion.

## Query parameters

- `user_id` string, nullable
- `merge_into_email` string, nullable

## Response `200`

Successful Response

- DeleteAccountResponse
  - `success` boolean, required
  - `message` string, required
  - `merged_count` integer, nullable
  - `merge_details` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/8d495ed916c6/schema)
