vk remove
vk remove [options]Options
Section titled “Options”| Option | Description | Default |
|---|---|---|
-s, --stage <stage> | Stage name | dev |
-y, --yes | Skip confirmation prompt | false |
Description
Section titled “Description”Removes all deployed AWS resources for a given stage. This tears down the CloudFormation stacks created by vk deploy.
Safety
Section titled “Safety”- Dev stage: No confirmation required
- Non-dev stages: Requires interactive confirmation (unless
--yesis passed)
Examples
Section titled “Examples”# Remove dev (no confirmation)vk remove
# Remove staging (confirmation required)vk remove --stage stage
# Remove production (skip confirmation)vk remove --stage prod --yesUnder the Hood
Section titled “Under the Hood”- Generates a CDK app in
.vk/cdk/(same asvk deploy) - Runs
cdk destroyto tear down the CloudFormation stack for the stage