> ## Documentation Index
> Fetch the complete documentation index at: https://docs.soroswap.finance/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Soroswap Aggregator API: base URL https://api.soroswap.finance, pick the network with ?network=mainnet or ?network=testnet (omitted means mainnet).
> Auth: Authorization: Bearer sk_... on every call. Get a key at https://console.soroswap.finance/register. A missing or invalid key returns 401 with code and registerUrl (POST /send returns 403 instead); an expired JWT or a missing role returns 403. Free plan 1 request/s; see https://docs.soroswap.finance/api/plans.md.
> Flow: POST /quote (assetIn, assetOut as C... contract addresses, amount as an integer string in the smallest unit, tradeType, protocols) -> POST /quote/build with the unchanged quote and from -> the user signs the XDR -> POST /send. Build right after quoting: a Soroban XDR is valid for 180 seconds. Submit it as is, never re-simulate it.
> Partner id: every account has one (9 hex chars, permanent). Read partnerId from GET /partner, or in the console at https://console.soroswap.finance under Fees & payouts. The partner fee itself is switched on by Soroswap; see https://docs.soroswap.finance/api/fees.md.
> AI tools: docs MCP at https://docs.soroswap.finance/mcp (claude mcp add --transport http soroswap-docs https://docs.soroswap.finance/mcp), skill with npx skills add https://docs.soroswap.finance. Other clients: https://docs.soroswap.finance/api/build-with-ai.md.
> Units and Stellar pitfalls: https://docs.soroswap.finance/api/stellar-gotchas.md. Errors and retries: https://docs.soroswap.finance/api/errors.md.

# Remove Liquidity

> Removing liquidity from a Soroswap pool, from selecting a position to confirming the transaction.

Now that we have learned how to add liquidity and perform swaps on Soroswap, let's explore how to remove liquidity from our liquidity positions.

## Step 1: Navigate to the Liquidity page

1. Go to the Soroswap app and click on the "Liquidity" tab in the navigation menu.

![Liquidity page](https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/images/tutorials/remove-liquidity/liquidity1.png?fit=max\&auto=format\&n=1xzCGA5zGx88_Gb9\&q=85\&s=c18d91ead0fd079806420c9615e1e39f)

## Step 2: Select the liquidity position

1. Find the liquidity position from which you want to remove liquidity.
2. Click on the liquidity position to view its details.

![Select liquidity position](https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/images/tutorials/remove-liquidity/liquidity2.png?fit=max\&auto=format\&n=1xzCGA5zGx88_Gb9\&q=85\&s=e645371023cc2e3701604df8fb6a6bdd)

You will see a modal displaying the liquidity pool information, balances, and your share of the pool.

3. Click the "Remove" button to proceed to the remove liquidity page.

## Step 3: Remove liquidity

1. In the "Remove Liquidity" section, use the slider or enter the amount of liquidity you would like to remove.

![Remove liquidity](https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/images/tutorials/remove-liquidity/liquidity3.png?fit=max\&auto=format\&n=1xzCGA5zGx88_Gb9\&q=85\&s=5dae3dd7d934d13dcc052f97935627d3)

2. Click the "Remove" button.

![Confirm removal](https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/images/tutorials/remove-liquidity/liquidity4.png?fit=max\&auto=format\&n=1xzCGA5zGx88_Gb9\&q=85\&s=046a72518defc0e9c98470c02f418360)

3. Review the details of the removal, including the amount of tokens you will receive.
4. If everything looks correct, click the "Confirm" button.

## Step 4: Confirm the transaction

1. Your Freighter wallet will open, displaying the transaction details.
2. Review the transaction information and click "Approve" to confirm the removal.
3. Wait for the transaction to be confirmed on the blockchain.

## Step 5: View the transaction details

1. Once the transaction is confirmed, you will see a success message indicating that the liquidity removal was completed.
2. You can also view the transaction details with the transaction hash or by clicking "View on explorer".

Congratulations! You have successfully removed liquidity from a pool on Soroswap. You can now explore other liquidity positions or continue to engage with the exciting world of decentralized finance.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.