---
title: "Close and archive a user's account"
method: POST
path: "/admin/archive-user"
tags: ["admin"]
---

# Close and archive a user's account

`POST /admin/archive-user`

Permanently closes the user's account without deleting records. The account can no longer authenticate or receive communications.

## Query parameters

- `user_id` integer, required

## Response `200`

Account closed successfully

- AdminArchiveUserResponse
  - `status` 'closed', required — Account closure status
  - `user_id` integer, required — Archived user id

## Other responses

- `400` — Cannot archive an admin account
- `404` — User not found

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) · [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rxfoodapp/inneranalytics-mnt-server/revisions/0703cbbbefe8/schema)
