func (s *stacker) DeleteStack(appName string) error {
	stackName := getStackName(appName)
	_, err := s.describeStack(stackName)
	if err != nil {
		return fmt.Errorf("Could not find stack for: %s", appName)
	}
	_, err = s.client.DeleteStack(&cloudformation.DeleteStackInput{
		StackName: aws.String(stackName),
	})
	if err != nil {
		return err
	}
	return s.client.WaitUntilStackDeleteComplete(&cloudformation.DescribeStacksInput{
		StackName: aws.String(stackName),
	})
}
// DeleteStack deletes the cloudformation stack
DeleteStack deletes the cloudformation stack
// DeleteStack deletes the cloudformation stack
func (s *stacker) DeleteStack(appName string) error {
	stackName := getStackName(appName)
	_, err := s.describeStack(stackName)
	if err != nil {
		return fmt.Errorf("Could not find stack for: %s", appName)
	}
	_, err = s.client.DeleteStack(&cloudformation.DeleteStackInput{
		StackName: aws.String(stackName),
	})
	if err != nil {
		return err
	}
	return s.client.WaitUntilStackDeleteComplete(&cloudformation.DescribeStacksInput{
		StackName: aws.String(stackName),
	})
}
func ( s * stacker ) DeleteStack ( appName string ) error { stackName := getStackName ( appName ) _ , err := s . describeStack ( stackName ) if err != nil { return fmt . Errorf ( " " , appName ) } _ , err = s . client . DeleteStack ( & cloudformation . DeleteStackInput { StackName : aws . String ( stackName ) , } ) if err != nil { return err } return s . client . WaitUntilStackDeleteComplete ( & cloudformation . DescribeStacksInput { StackName : aws . String ( stackName ) , } ) }
DeleteStack deletes the cloudformation stack
DeleteStack deletes the cloudformation stack