def delete_flavor(self, name_or_id):
        flavor = self.get_flavor(name_or_id)
        if flavor is None:
            self.log.debug(
                "Flavor {0} not found for deleting".format(name_or_id))
            return False

        with _utils.shade_exceptions("Unable to delete flavor {name}".format(
                name=name_or_id)):
            self.manager.submitTask(_tasks.FlavorDelete(flavor=flavor['id']))

        return True
Delete a flavor
dataset/ETHPy150Open openstack-infra/shade/shade/operatorcloud.py/OperatorCloud.delete_flavor