Pulumi CLI state delete accepts multiple resource URNs
Introduced 2026-03-25 · score 0.93
HOW TO USE IT
When removing multiple resources from Pulumi state, pass their URNs to one `pulumi state delete` invocation; the CLI deletes them in dependency-safe order.
pulumi state delete '<urn-1>' '<urn-2>'WHY THIS HELPS
When removing multiple resources from Pulumi state, provide their URNs to one `pulumi state delete` invocation.
REQUIREMENTS AND LIMITATIONS
- Version: v3.228.0
- <urn> (positional; repeatable) (required): Pulumi URN of a resource to remove from state. Quote URNs to prevent shell interpretation.
- The command deletes resources in a dependency-safe order.
- Docs conflict: The current CLI reference documents `pulumi state remove` (generated for v3.263.0), not `pulumi state delete`; it is newer than the card’s v3.228.0. Its command name and dependency behavior are not used here.
FIRST-PARTY EVIDENCE
- https://github.com/pulumi/pulumi/releases/tag/v3.228.0
- https://www.pulumi.com/docs/iac/operations/stack-management/removing-resources-without-deleting-them/
Check the installed version and the source before using it. Entry JSON