> For the complete documentation index, see [llms.txt](https://docs.usdd.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usdd.io/user-guide/close-a-vault.md).

# 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
