---
title: "Process User Deletion"
method: POST
path: "/internal/users/{user_id}/process-deletion"
tags: ["internal"]
---

# Process User Deletion

`POST /internal/users/{user_id}/process-deletion`

## Request

- Base URL: `https://api.mengi.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mengi.cloud/internal/users/{user_id}/process-deletion`
- Auth: none declared. Required headers: `x-service-token`

Process a user account deletion: remove credentials, the personal
organization and the user row (see account_deletion_service).

Returns ``deleted: false`` with ``blocked_by`` when the account still
owns infrastructure or money is outstanding; the worker retries daily.

## Path parameters

- `user_id` string, uuid, required

## Headers

- `x-service-token` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
