---
title: "Delete a custom sub-account"
method: DELETE
path: "/settings/v1/sub-accounts/{id}"
tags: ["CustomSubAccounts"]
---

# Delete a custom sub-account

`DELETE /settings/v1/sub-accounts/{id}`

Use this call to delete a custom sub-accounts.
When you delete a custom sub-account, the corresponding accounting accounts are either archived (if there are some transactions posted),
or deleted (if no transactions were posted).<br>You must have at least one of these scopes: 'subledger.manage, setup.manage'.

## Path parameters

- `id` string, required

## Response `204`

Deletion of the sub-account was successful.

## Other responses

- `400` — Bad request.
- `401` — You are unauthorized.
- `403` — Forbidden.
- `404` — The Request-URI could not be found.
- `422` — Validation errors in the request body or query params.
- `499` — Client closed request.
- `500` — An unexpected error occurred.
- `503` — The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-settings-api.md) · [All operations](https://skmtc.dev/apaleo/apis/apaleo-settings-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apaleo/apaleo-settings-api/revisions/da1c3b71ee9a/schema)
