Solana Wallet Cleanup

Learn how to clean up a Solana wallet, review empty token accounts, handle unwanted assets, and understand the difference between closing, burning, transferring, and hiding.

A Solana wallet can accumulate token accounts, unwanted assets, spam tokens, and other on-chain state over time.

Wallet cleanup is not one single Solana instruction. It is a process of identifying what an account or asset is, understanding what action will affect it, and reviewing the transaction before signing.

This section explains how to review empty token accounts, close eligible accounts, handle unwanted assets, and distinguish on-chain actions from wallet-interface changes.

Wallet cleanup basics
  • Wallet cleanup can involve closing, transferring, burning, hiding, or simply reviewing assets.
  • These actions have different effects and should not be treated as interchangeable.
  • An empty token account may still hold SOL and may be eligible for closure.
  • An unrecognized token should not automatically be burned or interacted with.
  • A cleanup tool should show the affected accounts, destination, instructions, and fees before signing.
  • Wallet cleanup should never require sharing a seed phrase or private key.

What does wallet cleanup mean?

Wallet cleanup is a general term for reviewing and managing unused or unwanted wallet state.

Depending on the situation, cleanup may involve:

  • finding empty token accounts;
  • closing eligible accounts;
  • transferring tokens to another account;
  • burning tokens you intentionally want to destroy;
  • hiding unwanted assets in a wallet interface;
  • reviewing suspicious tokens; or
  • organizing a wallet after frequent trading or token activity.

The right action depends on what the account or asset actually contains.

Empty token accounts

A token account can remain on-chain after its token balance reaches zero.

Some eligible accounts can be closed, allowing their remaining lamports to be transferred to a destination account. For a normal non-native token account, the token balance generally must be zero before closure, and the owner or configured close authority must authorize the instruction.

An empty account should not be closed automatically without checking:

  • the token program;
  • the token balance;
  • the account state;
  • the close authority;
  • the destination account; and
  • any applicable fee.

Unwanted and spam tokens

An unfamiliar token does not automatically need to be burned or interacted with.

Unsolicited tokens may include suspicious metadata, links, or instructions designed to direct users to unsafe applications.

If you do not recognize an asset:

  • do not click links in its metadata;
  • do not sign a transaction merely to inspect or remove it;
  • verify the token mint through a trusted source;
  • consider hiding it in the wallet interface; and
  • use a burn operation only if you intentionally want to destroy the balance.

Close, burn, transfer, or hide?

These actions have different meanings:

ActionWhat it changes
CloseRemoves an eligible token account and transfers its lamports
BurnPermanently destroys token units under the relevant token-program rules
TransferMoves token units to another token account
HideChanges how an asset appears in a wallet interface without changing its on-chain state

The safest action is not always the one that removes an asset from view. First determine whether you want to change the blockchain state or only the wallet's display.

Wallet cleanup safety

Never provide a wallet-cleanup website with:

  • your seed phrase;
  • private keys;
  • recovery words; or
  • exported wallet files containing signing credentials.

A non-custodial application should work through a wallet connection and explicit transaction signatures.

However, non-custodial does not mean risk-free. A user can still approve a malicious or unintended transaction, so every instruction and destination should be reviewed before signing.

What a safe cleanup flow should show

Before approval, a cleanup tool should clearly identify:

  • the connected wallet;
  • the accounts or assets affected;
  • the token mint or account type;
  • the destination address;
  • the SOL or token amounts involved;
  • the programs and instructions being invoked; and
  • any network or service fee.

If the transaction includes an action unrelated to the cleanup you requested, reject it.

Cleaning a wallet carefully

A good cleanup workflow emphasizes review rather than blind automation:

  1. Connect the intended wallet.
  2. Scan only supported account types.
  3. Review each account or asset included in the result.
  4. Confirm the destination and fees.
  5. Inspect the wallet transaction.
  6. Sign only if the instructions match your intent.
  7. Wait for confirmation and verify the outcome.

The guides in this section explain empty token accounts, account closure, unwanted assets, wallet-interface hiding, burn operations, and cleanup safety.

Explore guides

guide

Solana Wallet Cleanup Guide

Learn how to clean up a Solana wallet safely by reviewing empty token accounts, unwanted tokens, reclaimable rent, and transactions before signing.

guide

How to Find Empty Token Accounts on Solana

Learn how to scan your Solana wallet for eligible empty token accounts with Your Free SOL, review refundable SOL rent, and decide which accounts to close.