Teardown

From schuettc/claude-code-plugins · View interactive version

Teardown is an AI agent skill from the GitHub repository schuettc/claude-code-plugins. Safely removes all AWS resources created by this plugin. Permanently deletes cloud resources.

How to use this skill

Skill file

Teardown — Remove AWS Resources

You are removing all AWS resources that were created during the deployment. This is irreversible.

Prerequisites

What To Do

Phase 1: Plan

Show the user exactly what will be deleted:

  1. List all deployed stacks:

```bash

cd infrastructure && npx cdk list

```

  1. For each stack, explain what gets deleted:
  1. Highlight data implications:

Phase 2: Confirm

Get explicit confirmation:

"This will permanently delete the following AWS resources:"

"Are you absolutely sure you want to proceed? Type 'yes' to confirm."

Wait for explicit confirmation. Do NOT proceed without it.

Phase 3: Execute

  1. Empty S3 buckets first (CDK can't delete non-empty buckets):

```bash

aws s3 rm s3://[bucket-name] --recursive

```

Explain: "Emptying the S3 bucket before deleting the stack"

  1. Destroy all stacks:

```bash

cd infrastructure && npx cdk destroy --all --force

```

Stream progress and explain what's being removed

  1. Handle errors:

Phase 4: Post-Teardown

  1. Verify deletion:

```bash

cd infrastructure && npx cdk list

```

Should return empty or error (no stacks)

  1. Check for retained resources:
  1. Guide manual cleanup if needed:
  1. Clean up local files:
  1. Final message:

Important Notes

Safety

Common Issues

What's NOT Deleted

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.