> For the complete documentation index, see [llms.txt](https://docs-29.gitbook.io/usdd-v2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-29.gitbook.io/usdd-v2/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.&#x20;

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

<figure><img src="https://2945301076-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhhJYuxX7rDCKfENnFhy%2Fuploads%2FNID4KoF6HcNLUT9ZdaYF%2F18.png?alt=media&amp;token=834dc247-fd6f-47e2-b1e4-d6b7c4d4ea0c" 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="https://2945301076-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhhJYuxX7rDCKfENnFhy%2Fuploads%2F29qbnSQLF7LlnQ9ES7SS%2F19.png?alt=media&amp;token=b6ed4726-6d80-44f2-8032-24d50ff18091" alt=""><figcaption></figcaption></figure>

4. **Repay all borrowed USDD**

Navigate to the Payback & Withdraw tab

<figure><img src="https://2945301076-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhhJYuxX7rDCKfENnFhy%2Fuploads%2Fs0o71sKLTThZ2oVXkWMa%2F20.png?alt=media&amp;token=9ee1c5ed-7ff1-48a9-9651-4c84a1640e64" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2945301076-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhhJYuxX7rDCKfENnFhy%2Fuploads%2Fvq5DVSlbZsIIxfRt7TVf%2F21.png?alt=media&amp;token=8c8692e5-5d0d-4b56-9c66-f286284af1d5" alt=""><figcaption></figcaption></figure>

5. **Withdraw all your collateral**

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

<figure><img src="https://2945301076-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhhJYuxX7rDCKfENnFhy%2Fuploads%2FEfKU8eBT4eihNXiE9woB%2F22.png?alt=media&amp;token=22bebded-002b-4492-9050-5d58a377d7e6" alt=""><figcaption></figcaption></figure>

6. **Confirm Transaction**&#x20;

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

<figure><img src="https://2945301076-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhhJYuxX7rDCKfENnFhy%2Fuploads%2Ff9Eou9Ppk82XKrdmW6Yd%2F23.png?alt=media&amp;token=8d127923-b8b1-4c4f-95df-da6c6065dcf1" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2945301076-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhhJYuxX7rDCKfENnFhy%2Fuploads%2FicQ7jSIcYjtgpIcdVwXU%2F24.png?alt=media&amp;token=208e7c3f-ac18-42fb-94e5-ad1bad7f79e2" 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
