# Close a Vault

1. **Navigate to the Vault page**

Go to the Vault section and locate the active Vault you wish to close.

2. **Connect Your Wallet**

Connect your wallet to the platform.

Ensure your wallet has enough TRX to cover the gas fees required for repayment and collateral withdrawal.

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

3. **Review Your Vault Status**

Before closing your Vault, check:

* The outstanding USDD debt
* Your collateral balance
* Your current collateral ratio

Make sure you have enough USDD in your wallet to fully repay the debt.

<figure><img src="/files/7xeJEe7uMe26Wp4nVg2j" alt=""><figcaption></figcaption></figure>

4. **Repay all borrowed USDD**

Navigate to the Payback & Withdraw tab

<figure><img src="/files/0ujU0rkLRsdDZM9qSwLn" alt=""><figcaption></figcaption></figure>

In the Payback field, click Payback All or enter the full debt amount.

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

5. **Withdraw all your collateral**

In the Withdraw field, click Max or enter the full collateral amount.

<figure><img src="/files/7t0VZdUAJAmDGpY5PuOP" alt=""><figcaption></figcaption></figure>

6. **Confirm Transaction**

Click Payback All & Withdraw, confirm the transaction in your wallet.

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

Once completed, your Vault debt will be zero, and all collateral will be returned to your wallet.

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

**Note:**

If you don’t have enough USDD, you can:

* Swap USDD via the PSM (Peg Stability Module)
* Or purchase USDD from exchanges


---

# 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.usdd.io/user-guide/close-a-vault.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.
