logoStacktape docs




delete

Deletes stack with specified stage. This operation is irreversible. Please create a backup of any data that you wish to keep. Delete operation requires the original configuration file to be supplied. If you wish to delete your stack without the configuration file, you can use the --fullStackName option (constructed as [stackName]-[stage]). Please note that in this case Stacktape won't trigger hooks execution.

stacktape delete --region <<region>>

API reference

Command options API reference
region (--r)
Required

AWS region for given command.

Type: string ENUM

Possible values: af-south-1ap-east-1ap-northeast-1ap-northeast-2ap-northeast-3ap-south-1ap-southeast-1ap-southeast-2ca-central-1eu-central-1eu-north-1eu-south-1eu-west-1eu-west-2eu-west-3me-south-1sa-east-1us-east-1us-east-2us-west-1us-west-2

stage (--s)
Required

Stage to deploy your stack to. Example stages are production, staging, etc.

Type: string

configPath (--cp)

Path (relative to cwd) to your stacktape configuration file. By default, it's stacktape.yml.

Type: string

currentWorkingDirectory (--cwd)

Current working directory. All file paths in your config will be resolved relatively to specified cwd. Default: directory containing configuration file.

Type: string

emptyBuckets (--eb)

Empties all buckets before attempting stack delete

Type: boolean

fullStackName (--fsn)

undefined

Type: string

logFormat (--lf)

Format of logs that are being printed to your console. You can learn more at https://docs.stacktape.com/cli/using-cli Default: 'fancy'

Type: string ENUM

Possible values: basicfancyjsonnormal

logLevel (--ll)

Level of logs that are being printed to the console. You can use 'debug' for more information about what's being done, or 'error' to show only errors. Default: 'info'

Type: string ENUM

Possible values: debugerrorinfo

profile (--p)

AWS profile to use.

Type: string