go-to-kgo-to-kCommunityยท2 Agent Skills Included

delstack

Force-delete stuck AWS CloudFormation stacks without orphaned resources

Deletes AWS CloudFormation stacks that fail with DELETE_FAILED, including non-empty S3 buckets, ECR images, IAM users, and Backup Vaults. Resolves dependencies between multiple stacks and deletes them in parallel, including cross-region CDK apps. Eliminates manual console cleanup, orphaned resources, and deletion-protection roadblocks with a single command.
npx skills add go-to-k/delstack --all -g -y
Available:

Explains the codebase architecture, layered package rules, and testing conventions so the agent can correctly add new force-delete operators and preprocessors to this Go CLI.

All Skills in This Repository (2)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install delstack?โ–ผ

Run `npx skills add go-to-k/delstack --all -g -y` in your terminal to install all skills in this repository globally.

How to force delete a stuck CloudFormation stack?โ–ผ

Run `delstack -s <stackName> -f` to remove resources blocking deletion, such as non-empty S3 buckets or ECR repositories, and disable deletion protection automatically.

Can delstack delete CDK apps across regions?โ–ผ

Yes. Run `delstack cdk` in your CDK project directory to synthesize the app, discover all stacks including cross-region ones, and delete them in dependency order.

Does delstack leave orphaned resources behind?โ–ผ

No. Unlike CloudFormation's FORCE_DELETE_STACK, delstack actually cleans up blocking resources like backup recovery points and Lambda ENIs before finishing the stack deletion.

Can I delete multiple stacks at once?โ–ผ

Yes. Pass multiple `-s` flags and delstack deletes them in parallel while respecting inter-stack dependencies, with an optional `-n` flag to cap concurrency.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’