---
title: "Delete an account"
method: DELETE
path: "/api/v2/accounts/{accountId}"
tags: ["Member Account"]
---

# Delete an account

`DELETE /api/v2/accounts/{accountId}`

Delete an account using accountId.
eraseMemberData parameter is optional and defaults to false. If set to true it removes all member data that belongs to a gym (personal data, contract data, rfid, product bookings).
If set to false it deletes only membershipId and contract data.

## Path parameters

- `accountId` string, required

## Query parameters

- `eraseMemberData` boolean

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/egym/apis/mms-api-v2.md) · [All operations](https://skmtc.net/egym/apis/mms-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/egym/mms-api-v2/versions/07d571d34bd8/schema)
