> For the complete documentation index, see [llms.txt](https://tucana-1.gitbook.io/tucana-developer-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tucana-1.gitbook.io/tucana-developer-docs/spot-dex/spot-contract/feature-available/remove-liquidity.md).

# Remove Liquidity

## 1. Remove liquidity

### &#x20;1.1Function params

* **account**: the signer of the user.
* **position\_nft**: the positon nft object.
* **delta\_liquidity**: the amount of liquidity will be remove.

### 1.2. Function

```rust
// tucana_clmm::router
public entry fun remove_liquidity(
    account: &signer,
    position_nft: Object<PositionNft>,
    delta_liquidity: u128,
) 

```

## 2. Remove Lliquidity With Option

### 2.1. Function params

* **account**: the signer of the user.
* **position\_nft**: the positon nft object.
* **delta\_liquidity**: the amount of liquidity will be remove.
* **min\_amount\_a**: the min amount of coin a want to remove.
* **min\_amount\_b**: the min amount of coin b want to remove.
* **is\_collect\_fee**: the option of is collect fee.
* **is\_collect\_reward**: the option of is collect reward.

ps: Before close positon, the fee , reward and liquidity must all removed.

### 2.2. Function

```rust
// tucana_clmm::router
public entry fun remove_liquidity_with_option(
    account: &signer,
    position_nft: Object<PositionNft>,
    delta_liquidity: u128,
    min_amount_a: u64,
    min_amount_b: u64,
    is_collect_fee: Option<bool>,
    is_collect_reward: Option<bool>,
) 

```
