> 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

**Guide Scope: TRON**\
This guide covers repaying the full debt and withdrawing all collateral from a Vault on TRON. The instructions and screenshots below apply to TRON.

1. **Navigate to the Vault page**

Go to the Vault section and locate the active [Vault](https://app.usdd.io/tron/) 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. **Approve USDD spending, if required**

If an **Approve** button is displayed, click it and confirm the approval in your wallet. Wait for the approval to complete before proceeding.\
Approval only grants permission to spend USDD. It does not repay your debt or withdraw your collateral.

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

7. **Confirm repayment and collateral withdrawal**

Review the full repayment amount and the collateral amount to withdraw. Click **Payback & Withdraw**, then confirm the transaction in your wallet. Wait for the transaction to succeed.

<figure><img src="https://114421464-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FARwMu8GsAubRHTakjdxU%2Fuploads%2Fgit-blob-94afd11fcc2d59d8597472c6e7e7bcbf70fd9072%2Fgitbook-63-payback-withdraw.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
