> For the complete documentation index, see [llms.txt](https://3commas.gitbook.io/3commas-official-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://3commas.gitbook.io/3commas-official-api-docs/account/remove-exchange-connection.md).

# Remove exchange connection

**Description:** Deletes an exchange account from user<br>

**Permission:** ACCOUNTS\_WRITE\
**Security:** SIGNED\ <br>

{% hint style="warning" %}
Keep in mind, that an exchange account can't delete if it has any active entities (Grid Bot, Smart Trade, Deals, Trade, Signal Bot).
{% endhint %}

<br>

***

<mark style="color:green;">**POST**</mark>

<mark style="color:green;">**/ver1/accounts/{account\_id}/remove**</mark>

***

<br>

## Path Parameter<br>

**account\_id**     <mark style="color:orange;">required</mark>     `integer`\
Unique 3Commas ID for this exchange account entity

<br>

## Response Parameters<br>

```
NONE
```

<br>

## Example request<br>

```json
POST /ver1/accounts/12345678/remove
```

\ <br>

## Example Response and errors<br>

<details>

<summary>Status: 201 Created</summary>

<br>

```json
true
```

</details>

<details>

<summary>Status: 404 Not Found</summary>

<br>

```json
{
    "error": "not_found",
    "error_description": "Not Found"
}
```

</details>

<details>

<summary>Status: 422 Unprocessable Entity</summary>

<br>

```json
{
    "error": "account_not_deletable",
    "error_description": "There are active trading deals on this exchange. Close all trading operations and try again"
}
```

</details>
