I was deploying program and by mistake I missed the keyword program and just typed

solana deploy <PROGRAM_FILEPATH>

which return the below program Id and there is no upgradeable authority. Now I want to close this program and recover my sol.


Is there any solution regarding can I recover my sol from this program and close it. Thank you!

  • did you run solana program close <yourprogramaccountaddress> Commented Aug 24, 2022 at 7:39
  • yes I tried but it gives me this error Error: 4NSU1oLcDRaDEitdHXNky8DZbqweogyYmZ3gwBPgMv6k is not a Program or Buffer account Commented Aug 24, 2022 at 8:39
  • make sure you are on the correct cluster
    – vicyyn
    Commented Aug 24, 2022 at 9:30
  • Thanks for reply how can I confirm this? If i am on right cluster. Commented Aug 24, 2022 at 11:26

2 Answers 2


You can't, thesolana deploy command deploys immutable program. They should probably let you know beforehand.

  • By default, the program deployed is not immutable. One must use --final to make a program immutable. Commented Sep 16, 2022 at 5:42
  • OK Thanks mate. So I just lost sol. Commented Sep 16, 2022 at 10:04
  • For the comment about not immutable programs, see this issue, basically the loader was updated and the old loader solana deploy shouldn't be used in favor of the new loader solana program deploy. Commented Sep 18, 2022 at 1:34

You can close the program using the following command and recover the SOL

solana program close <PROGRAM_ADDRESS>

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.