Skip to content

[cli] esc env rm without arguments unexpectedly deletes entire environment #604

@fnune

Description

@fnune

The esc env rm <env> command without additional positional arguments deletes the entire environment, which is unexpected and potentially dangerous.

Normally, esc env rm is used to remove data from an environment using positional arguments. The current behavior where omitting those arguments results in full environment deletion is confusing and has led to accidental deletions.

This behavior contributed to the need for environment deletion protection features.

Context: https://pulumi.slack.com/archives/C04UZTMV0TF/p1730754600752399

Metadata

Metadata

Assignees

Labels

impact/breakingFixing this issue will require a breaking changeimpact/usabilitySomething that impacts users' ability to use the product easily and intuitivelykind/enhancementImprovements or new featureslanguage/go

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions