-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi,
In DFX, deleting a canister follows an important sequence:
1. Stop the canister
2. Transfer back as many cycles as possible
3. Perform the final delete operation
This prevents accidentally losing cycles when removing canisters.
While using ICP CLI, I noticed that this behavior is currently different. From my testing, cycles are not recovered before deletion, which means they are effectively lost. During some restructuring operations on mainnet, this resulted in me unintentionally losing cycles 😅
Would it be possible to make the behavior feature-equivalent to dfx, recovering cycles before deletion?
⸻
CLI feedback
Another related point: some commands provide no terminal feedback.
For example:
• canister stop
• canister delete
They execute but return no textual confirmation. It would be helpful if these commands printed a short confirmation or status message so users know what happened.
⸻
Thanks for the work on the CLI!