---
title: "POST /api/v2/accounts/{id}/delete/"
method: POST
path: "/api/v2/accounts/{id}/delete/"
tags: ["accounts"]
---

# POST /api/v2/accounts/{id}/delete/

`POST /api/v2/accounts/{id}/delete/`

Custom delete method that accepts body arguments.

## Path parameters

- `id` integer, required

## Request body

- DeleteAccount — Serializer used with delete operation.
  - `keepdir` boolean

## Response `200`

- DeleteAccount — Serializer used with delete operation.
  - `keepdir` boolean

---

[API](https://skmtc.net/modoboa/apis/modoboa-api.md) · [All operations](https://skmtc.net/modoboa/apis/modoboa-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modoboa/modoboa-api/versions/01f8eaf44cc7/schema)
