def delete_stack(self, name_or_stack_id):
        if self.stacks in name_or_stack_id:
            # Delete by stack id
            stack = self.stacks.pop(name_or_stack_id, None)
            stack.delete()
            self.deleted_stacks[stack.stack_id] = stack
            return self.stacks.pop(name_or_stack_id, None)
        else:
            # Delete by stack name
            for stack in list(self.stacks.values()):
                if stack.name == name_or_stack_id:
                    self.delete_stack(stack.stack_id)
dataset/ETHPy150Open spulec/moto/moto/cloudformation/models.py/CloudFormationBackend.delete_stack/swapped operands of `in`