# Close a Position and Withdraw Collateral

In order to close a position, you must repay any outstanding loans taken. This can be done with the repay option on the **Dashboard** screen. This process will burn borrowed synthetic from the circulating supply.

Closing a position is easy and can be done in a few simple clicks. Watch the tutorial, or follow the steps below.

{% embed url="<https://youtu.be/ZzXiIlfTMFo>" %}

### Select the NFTs you want to repay debt for and withdraw:

<figure><img src="/files/45kivAcWcCrK8c4uN3N9" alt=""><figcaption><p>Repay debt on the selected NFTs</p></figcaption></figure>

Confirm repayment and withdrawal, which will happen in one transaction, closing your position and sending the NFTs back to your address.

<figure><img src="/files/XK8RYcZUzTnFLT5dxMeN" alt=""><figcaption><p>Choose to repay or repay and withdraw your NFT</p></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.jpegd.io/jpegd-dao/cdp-lending-guides/borrowing/close-a-position-and-withdraw-collateral.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.
