How to collect the cycles from the useless canisters?

I had created a few canister, now i want to destory the canisters and collect the cycles, is there any way? Or when destory the canister, the cycles will back to the cycle wallet automatically ?

maybe this helps


Thanks a lot, it’s really useful for me

1 Like

I would suggest not destroying the canister but reusing it to deploy whatever new wasm you’re deploying. That way the 1T cycles used when creating a new canister is not wasted.

Simply use the same identity and the existing canister ID in your new project’s canister_ids.json when deploying.