Skip to content

vk remove

Terminal window
vk remove [options]
OptionDescriptionDefault
-s, --stage <stage>Stage namedev
-y, --yesSkip confirmation promptfalse

Removes all deployed AWS resources for a given stage. This tears down the CloudFormation stacks created by vk deploy.

  • Dev stage: No confirmation required
  • Non-dev stages: Requires interactive confirmation (unless --yes is passed)
Terminal window
# Remove dev (no confirmation)
vk remove
# Remove staging (confirmation required)
vk remove --stage stage
# Remove production (skip confirmation)
vk remove --stage prod --yes
  1. Generates a CDK app in .vk/cdk/ (same as vk deploy)
  2. Runs cdk destroy to tear down the CloudFormation stack for the stage