> For the complete documentation index, see [llms.txt](https://docs.minterest.com/sunset-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.minterest.com/sunset-hub/repay-withdraw-steps.md).

# Repay/Withdraw Steps

#### If you supplied only (no borrow)

1. Open the app on the appropriate network and connect your wallet.
2. Go to **Your Markets** → choose the asset → **Withdraw**.
3. Confirm the transaction in your wallet.
4. Repeat for each asset, if needed.

***

#### If you have an active borrow

1. **Repay** all your borrowings to withdraw the entire collateral position.
2. Once safe, go to **Your Markets** → **Withdraw** your supplied assets.
3. If you can’t fully repay at once, **repay a portion** → **withdraw a portion**, and repeat.

{% hint style="warning" %}
If you are close to liquidation, prioritise repaying.
{% endhint %}

***

#### Guides & FAQs

* [Repay/Withdraw Guide](https://docs.minterest.com/minterest-faq/withdraw-and-repay)
* [Contract Interaction Guide](/sunset-hub/contract-interaction-guide.md) (post-19 Dec)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.minterest.com/sunset-hub/repay-withdraw-steps.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.
