---
title: "Deletes the caller's account."
method: DELETE
path: "/api/v1/core/me"
tags: ["Core/Me"]
---

# Deletes the caller's account.

`DELETE /api/v1/core/me`

Soft-deletes the account, kills every active session, signs the caller out.
Refuses two cases: superadmin self-delete, and "sole admin of the tenant" —
both need an admin handover first. The caller must echo their own email in
`emailConfirmation` as a double-check, because nobody deletes their own
account by accident on the first try.

## Request body

- DeleteAccountRequest — Request body for `DELETE /me`. The caller must echo their own email in An.Platform.Module.Core.Controllers.DeleteAccountRequest.EmailConfirmation for the server to confirm intent.
  - `emailConfirmation` string, nullable

## Response `200`

Account soft-deleted, sessions revoked, caller signed out

- ApiResponseDeleteAccountResult — Standard API response envelope. All API endpoints return this structure. `data`: the payload (object or collection). `pagination`: present only for paginated collections.
  - `data` DeleteAccountResult — Outcome of M:An.Platform.Module.Core.Presentation.Interfaces.IMeService.DeleteMyAccountAsync(System.Security.Claims.ClaimsPrincipal,System.String,System.Threading.CancellationToken). Always returns a non-null instance with a machine-readable An.Platform.Module.Core.Presentation.Dtos.Me.DeleteAccountResult.Reason; the caller can inspect it without needing to catch exceptions for the foreseen rejection cases.
    - `success` boolean — True when the account was soft-deleted and sessions revoked.
    - `reason` string, nullable — Short stable code: `"ok"`, `"email_mismatch"`, `"superadmin_refused"`, `"sole_admin_refused"`, `"not_authenticated"`, `"exception"`.
  - `pagination` PaginationMeta — Pagination metadata included in paginated API responses.
    - `page` integer
    - `pageSize` integer
    - `totalCount` integer
    - `totalPages` integer

## Other responses

- `400` — Refused — read `Reason` in the body for the machine-readable code
- `401` — Not authenticated

---

[API](https://skmtc.net/neotimo/apis/neotimo-api.md) · [All operations](https://skmtc.net/neotimo/apis/neotimo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neotimo/neotimo-api/revisions/2ecf51b1543e/schema)
