How to Clean Spam Tokens from Your Stellar Wallet
Published March 2026 by @maattssoonn
Your Wallet Is Full of Tokens You Never Bought
If you use Lobstr, StellarTerm, Solar, or any other Stellar wallet, you may have noticed unfamiliar tokens cluttering your asset list. These are typically spam airdrops -- tokens that were distributed to your Stellar account without your permission. Scammers and aggressive token promoters create custom assets on the Stellar network and send them to thousands of accounts hoping to generate attention, fake trading volume, or lure victims to phishing sites.
Each of these uninvited tokens creates a trustline on your account, and each trustline locks 0.5 XLM of your reserves. Even if a token is completely worthless, it still costs you real XLM in locked reserves just by existing in your wallet.
How to Check If a Token Is Spam
Before removing tokens, it's worth verifying which ones are actually spam and which might be legitimate assets you forgot about. Here's a reliable process for checking:
- Look up the token on stellar.expert -- Search for the asset code combined with the issuer address. Stellar.expert is a trusted block explorer that shows detailed information about every asset on the Stellar network.
- Check trading volume -- If the token has zero or near-zero trading volume on the Stellar DEX, it has no real market. Legitimate tokens that people use will typically have some ongoing trading activity.
- Examine the issuer account -- Scam issuers often have thousands of trustlines (indicating mass distribution) and no legitimate website or organization behind them. A real project usually has a verified home domain and a smaller, organically grown trustline count.
- Check community ratings -- Stellar.expert displays community-submitted flags and warnings on known scam tokens. If a token is flagged by multiple users, it's almost certainly spam or malicious.
- Inspect the token name -- If the asset code is a URL or contains words like "CLAIM," "FREE," or "REWARD," it is a scam token designed to lure you to a phishing site. No legitimate project names its token after a marketing phrase.
Wallet-by-Wallet Removal Options
Lobstr
Open your asset list in Lobstr, tap the unwanted asset, and look for the "Remove trustline" option. You'll need a zero balance first -- send the token balance back to the issuer address (visible in the asset details). Lobstr's interface makes individual trustline removal relatively straightforward, but you'll need to repeat this process for every spam token. If you have many tokens to clean, you can export your Stellar secret key from Lobstr's settings to use with automated cleanup tools.
StellarTerm
In StellarTerm, navigate to the unwanted asset in your account balances. If you have a balance, attempt to sell it on the DEX first. Then go to your account settings and find the trustline management section where you can remove trustlines with zero balances. StellarTerm's interface is functional but dated, and each removal requires a separate transaction confirmation.
Solar Wallet
Solar provides an asset management section where you can view all your trustlines. Use this section to identify and remove unwanted assets. Like other wallets, you'll need to ensure zero balance before removal. Solar handles the ChangeTrust transaction construction for you, but each token must be processed individually.
Any Stellar Wallet
Regardless of which wallet you use, the underlying process is the same: zero out the token balance (sell on DEX or return to issuer), then submit a ChangeTrust operation with limit 0 to close the trustline. Every Stellar wallet that supports trustline management follows this pattern. If your wallet doesn't have a built-in trustline removal feature, you can export your secret key and use it with Stellar Asset Pruner to clean everything in one batch.
The Automated Approach
Manual removal works well for 2-3 tokens. It becomes tedious around 10 tokens. For 20 or more, it's genuinely impractical -- each token requires multiple steps, multiple transaction signings, and careful attention to get the balance to exactly zero before the trustline can be closed.
Stellar Asset Pruner scans your entire portfolio, shows you each token with a visual keep/remove interface, and processes all selected removals in optimized batches. The system handles DEX sales, issuer returns, and trustline removals automatically, pushing transactions close to Stellar's 100-operation limit for maximum efficiency. Most cleanups complete in under 90 seconds regardless of token count.
Your secret key never leaves your browser. All transaction signing happens client-side in your browser's memory, and the key is wiped immediately after use. No server ever sees, stores, or transmits your key.
What You Get Back
Each removed trustline returns 0.5 XLM to your available balance immediately. Ten spam tokens cleaned = 5 XLM back in your pocket. Twenty spam tokens = 10 XLM. Fifty spam tokens = 25 XLM. The network fees for the entire cleanup are typically less than 0.01 XLM total, making the return on cleanup overwhelming.