Skip to content

icp canister delete does not recover cycles (behavior differs from dfx) #431

@tiagoicp

Description

@tiagoicp

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 😅

Image

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions