#NEWLINE# def delete_flavor( self , name_or_id ) : #NEWLINE# #INDENT# 'Delete a flavor\n\n        :param name_or_id: ID or name of the flavor to delete.\n\n        :returns: True if delete succeeded, False otherwise.\n\n        :raises: OpenStackCloudException on operation error.\n        ' #NEWLINE# flavor = self . get_flavor ( self ) #NEWLINE# if ( flavor is None ) : #NEWLINE# #INDENT# self . log . debug ( 'Flavor {0} not found for deleting' . format ( name_or_id ) ) #NEWLINE# return False #NEWLINE# #UNINDENT# with _utils . shade_exceptions ( 'Unable to delete flavor {name}' . format ( name = name_or_id ) ) : #NEWLINE# #INDENT# self . manager . submitTask ( _tasks . FlavorDelete ( flavor = flavor [ 'id' ] ) ) #NEWLINE# #UNINDENT# return True