'Delete the CF stack managed by Zappa.'

def delete_stack(self, name, wait=False):

    try:
        stack = self.cf_client.describe_stacks(StackName=name)['Stacks'][0]
    except:
        print('No    Zappa    stack    named    {0}'.format(name))
        return False
    tags = {x['Key']: x['Value'] for x in stack['Tags']}
    if (tags.get('ZappaProject') == name):
        self.cf_client.delete_stack(StackName=name)
        if wait:
            waiter = self.cf_client.get_waiter('stack_delete_complete')
            print('Waiting    for    stack    {0}    to    be    deleted..'.format(name))
            waiter.wait(StackName=name)
        return True
    else:
        print('ZappaProject    tag    not    found    on    {0},    doing    nothing'.format(name))
        return False
