> For the complete documentation index, see [llms.txt](https://docs.ecko.finance/eckodao/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ecko.finance/eckodao/sdk/reference/eckodex-sdk/removeliquidity.md).

# removeLiquidity

## Removing liquidity from a coin pair liquidity pool

```
.removeLiquidity({
  token0: TOKENS.KDA,
  token1: TOKENS.ABC,
  liquidity: '0.01',
})
```

| Parameter   | Type    | Default Value        |
| ----------- | ------- | -------------------- |
| `account`   | Account | config.account (†)   |
| `secretKey` | string  | config.secretKey (†) |
| `token0`    | Token   |                      |
| `token1`    | Token   |                      |
| `slippage`  | string  |                      |

† Can be initialized in the SDK client constructor, i.e

```
new KaddexSdk({ account, secretKey })
```
