---
title: "Delete Subaccount"
method: DELETE
path: "/v1/subaccounts/{subaccount_id}"
tags: ["subaccounts"]
---

# Delete Subaccount

`DELETE /v1/subaccounts/{subaccount_id}`

Delete a subaccount. Custodial subaccounts cannot be deleted.

Refused with 409 if the subaccount has any open order (resting/in-flight
orders, or an active iceberg, peg, smart-taker or conditional order) —
cancel those first.

This is a soft delete: the row is marked is_active = false so the audit trail
(orders, fills, ledger entries) stays intact. The user never sees it again.

## Path parameters

- `subaccount_id` string, required

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

---

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