# Close a Farming Position

**To fully/partially withdraw from a farming position, simply follow the steps below**:

(Please note that when you open a position, it can't be closed right away. You'll need to hold onto it for at least 5 minutes before you can close it.)

Video Tutorial:

{% embed url="<https://www.youtube.com/watch?v=CjXbS3hOAfU>" %}

Text Tutorial:

1. Click on the “**Close**” button on the position you’d like to close

<figure><img src="/files/4w4x0c1Wabib9g0eztZ9" alt=""><figcaption></figcaption></figure>

2. **Partial Close:** you have the option to either fully close the position or partially close it.

<figure><img src="/files/DnZ4n0HEoDz0Vcj9fgbk" alt="" width="563"><figcaption></figcaption></figure>

3. **Minimize Trading:** this will have your position closed with the minimum required tokens to repay the debt. You will receive the remaining assets and could save on slippage and trading fees.

<figure><img src="/files/kecmUm9PNl5WElJqe8H8" alt=""><figcaption></figcaption></figure>

4. **Covert to Assets:** If you choose this option, your position will be closed out and converted into the asset of your choice. The value of your position will be converted and returned to you after the debt is paid.

<figure><img src="/files/t9oKxLsQ4NPf40dTXAgW" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.extrafi.io/extra_finance/leverage-farming/how-to-use/close-a-farming-position.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
