<commit_before>from collections import namedtuple

from .command import Command
from .utils import update_termination_protection, \
    is_stack_does_not_exist_exception


class StackDeleteOptions(namedtuple('StackDeleteOptions',
                                    ['no_wait',
                                     'ignore_missing'])):
    pass


class StackDeleteCommand(Command):
    SKIP_UPDATE_REFERENCES = True

    def run(self, stack_context):
        # stack contexts
        session = stack_context.session
        parameters = stack_context.parameters
        metadata = stack_context.metadata

        self.ppt.pprint_stack_name(stack_context.stack_key,
                                   parameters['StackName'],
                                   'Deleting stack ')

        # create boto3 cfn resource
        cfn = session.resource('cloudformation')
        self.ppt.pprint_session(session)
        self.ppt.pprint_parameters(parameters)

        # packaging if necessary
        stack_context.run_packaging()

        # call boto3
        stack = cfn.Stack(parameters['StackName'])
        try:<commit_msg>Don't need packaging when deleting stacks.<commit_after>from collections import namedtuple

from .command import Command
from .utils import update_termination_protection, \
    is_stack_does_not_exist_exception


class StackDeleteOptions(namedtuple('StackDeleteOptions',
                                    ['no_wait',
                                     'ignore_missing'])):
    pass


class StackDeleteCommand(Command):
    SKIP_UPDATE_REFERENCES = True

    def run(self, stack_context):
        # stack contexts
        session = stack_context.session
        parameters = stack_context.parameters
        metadata = stack_context.metadata

        self.ppt.pprint_stack_name(stack_context.stack_key,
                                   parameters['StackName'],
                                   'Deleting stack ')

        # create boto3 cfn resource
        cfn = session.resource('cloudformation')
        self.ppt.pprint_session(session)
        self.ppt.pprint_parameters(parameters)

        # call boto3
        stack = cfn.Stack(parameters['StackName'])
        try:
{'fraction_non_alphanumeric': 0.0708768741481145, 'fraction_numerical': 0.001817355747387551, 'mean_word_length': 2.110169491525424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3220207', 'n_tokens_mistral': 576, 'n_tokens_neox': 545, 'n_words': 108}