How to Delete Stellar Tokens and Clean Your Wallet
Published March 2026 by @maattssoonn
Why You Can't Just "Delete" Stellar Tokens
Unlike files on your computer, Stellar tokens are not objects you can simply select and delete. Every token in your wallet is represented by a trustline -- a two-way connection between your Stellar account and the token's issuer account. When you "hold" a token on Stellar, what you actually have is an open trustline that allows you to receive and send that specific asset.
To remove a token from your wallet, you must close the trustline. But the Stellar network enforces a strict rule: trustlines can only be closed when their balance is exactly zero. You cannot remove a trustline that still holds any amount of the token, no matter how small. This means that removing a token is a multi-step process, not a single action.
What's Actually Locking Your XLM
Every trustline on your Stellar account locks 0.5 XLM of your reserves. This is not a fee charged by anyone -- it's a fundamental requirement of the Stellar network designed to prevent ledger bloat. The XLM is still yours, but you cannot spend it, send it, or trade it while the trustline exists.
The Reserve Math
With 10 unwanted tokens, you have 5 XLM locked and inaccessible. With 20 tokens, that's 10 XLM. With 50 spam airdrop tokens, you're looking at 25 XLM you cannot use. The only way to free this XLM is to remove the trustlines holding it hostage.
The 3-Phase Removal Process
Removing a Stellar token requires getting the trustline balance to zero, then closing the trustline. In practice, this breaks down into three distinct phases:
Phase 1: DEX Trading
The first approach is to sell the token on Stellar's built-in decentralized exchange (DEX) for XLM. If any buyer exists at any price, even a fraction of the token's original value, you can convert it to XLM. This is the best-case scenario because you recover some actual value. However, many unwanted tokens (especially spam airdrops) have zero DEX liquidity, meaning no one is willing to buy them at any price.
Phase 2: Issuer Return
For tokens that cannot be sold on the DEX, the next step is to send the remaining balance back to the token's issuer address. The issuer is the Stellar account that originally created and distributed the token. Sending tokens back to the issuer effectively "burns" them from your perspective, bringing your trustline balance to zero. Most issuers accept incoming payments, but some may have their receiving capability disabled.
Phase 3: Trustline Removal
Once the trustline balance is exactly zero (from either selling or returning the tokens), you submit a ChangeTrust operation with a limit of zero. This tells the Stellar network to close the trustline. The moment the trustline is removed, the 0.5 XLM reserve that was backing it becomes immediately available in your account. You can spend it, send it, or trade it freely.
Manual vs Automated Removal
You can perform this entire process manually using tools like Stellar Laboratory or StellarTerm. For each token, you would need to: check the DEX for buy orders, submit a sell transaction or payment to the issuer, wait for confirmation, then submit a separate ChangeTrust transaction. Each step requires signing with your secret key. For a single token, this takes a few minutes. For 20 tokens, expect to spend 30 or more minutes of repetitive, tedious work.
Stellar Asset Pruner automates all three phases. It scans your portfolio, lets you select which tokens to remove, then executes DEX sales, issuer returns, and trustline removals in optimized batches. Most cleanups complete in 30-90 seconds, regardless of how many tokens you're removing. Your secret key never leaves your browser.
The Math Works in Your Favor
Stellar network fees are extremely low -- typically around 0.0001 XLM per operation. Even a complex cleanup involving dozens of tokens will cost less than 0.01 XLM in total network fees. Meanwhile, each trustline removed reclaims 0.5 XLM. Removing 10 tokens gives you back 5 XLM while costing less than a penny in fees. The economics of cleanup are overwhelmingly in your favor.
Example: Removing 20 unwanted tokens costs approximately 0.006 XLM in network fees and reclaims 10 XLM in reserves. That's a return of over 1,600x your fee expenditure.