Forrest logo
back to the aws tool

aws-cloudformation:tldr:e741d

aws-cloudformation: Delete a stack.
$ aws cloudformation delete-stack --stack-name ${stack-name} --profile ${profile}
try on your machine

This command is used to delete an AWS CloudFormation stack. Here is the breakdown of the command:

  • aws cloudformation delete-stack is the AWS CLI command used to delete a CloudFormation stack.

  • --stack-name ${stack-name} specifies the stack name of the CloudFormation stack that you want to delete. ${stack-name} is a placeholder that needs to be replaced with the actual name of the stack you want to delete.

  • --profile ${profile} specifies the AWS CLI profile to use for the command. ${profile} is a placeholder that needs to be replaced with the actual profile name. AWS CLI profiles allow you to manage multiple sets of AWS security credentials and switch between them easily.

By running this command with the appropriate stack name and profile, you can effectively delete a CloudFormation stack from your AWS account. Make sure to exercise caution and confirm that you want to delete the stack as this action cannot be undone.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the aws tool