> 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="https://114421464-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FARwMu8GsAubRHTakjdxU%2Fuploads%2Fgit-blob-8b8bb6f22d453eb5ac6bcd7ca344f13a21efd36c%2F18.png?alt=media" 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://114421464-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FARwMu8GsAubRHTakjdxU%2Fuploads%2Fgit-blob-f81e815409cdcff3babf7a7d547e35c3b89b5ed8%2F19.png?alt=media" alt=""><figcaption></figcaption></figure>

4. **Repay all borrowed USDD**

Navigate to the Payback & Withdraw tab

<figure><img src="https://114421464-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FARwMu8GsAubRHTakjdxU%2Fuploads%2Fgit-blob-deb38ed865991a657fba4f81ab4bc968e162ddbd%2F20.png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://114421464-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FARwMu8GsAubRHTakjdxU%2Fuploads%2Fgit-blob-60cb7d091d99277fc1009c0ecb7826b0df06466d%2F21.png?alt=media" 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://114421464-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FARwMu8GsAubRHTakjdxU%2Fuploads%2Fgit-blob-b64579c2f7e1c70ee60c1876a9bb58e2d84a3da6%2F22.png?alt=media" alt=""><figcaption></figcaption></figure>

6. **Confirm Transaction**

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

<figure><img src="https://114421464-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FARwMu8GsAubRHTakjdxU%2Fuploads%2Fgit-blob-1487b8e406d2b30b9d0527f62b310a376464b067%2F23.png?alt=media" 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://114421464-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FARwMu8GsAubRHTakjdxU%2Fuploads%2Fgit-blob-8e5359db42a4260b1a681e2db694b156be5f5f17%2F24.png?alt=media" 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
