How do i do this? Do i need to write a program? Is there an existing repo than can be cloned and run? I have tried using CLI in a terminal but haven’t had any luck.

1 Answer 1


To recover the SOL you need to close the token account.

You will have to send all its tokens out to another token account, as only empty accounts can be closed.

To close a specific token account you have several options:

  • solana cli: spl-token close <TOKEN_ADDRESS>
  • in wallet: solflare supports it, looks like phantom does not
  • uis:




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.