def _api_queue_delete(output, value, kwargs):
 if (value.lower() == 'all'):
  removed = NzbQueue.do.remove_all(kwargs.get('search'))
  return report(output, keyword='', data={'status': bool(removed), 'nzo_ids': removed})
 elif value:
  items = value.split(',')
  del_files = int_conv(kwargs.get('del_files'))
  removed = NzbQueue.do.remove_multiple(items, del_files)
  return report(output, keyword='', data={'status': bool(removed), 'nzo_ids': removed})
 else:
  return report(output, _MSG_NO_VALUE)

def _api_queue_delete ( output , value , kwargs ) : if ( value . lower ( ) == 'all' ) : removed = NzbQueue . do . remove_all ( kwargs . get ( 'search' ) ) return report ( output , keyword = '' , data = { 'status' : bool ( removed ) , 'nzo_ids' : removed } ) elif value : items = value . split ( ',' ) del_files = int_conv ( kwargs . get ( 'del_files' ) ) removed = NzbQueue . do . remove_multiple ( items , del_files ) return report ( output , keyword = '' , data = { 'status' : bool ( removed ) , 'nzo_ids' : removed } ) else : return report ( output , _MSG_NO_VALUE )
api: accepts output .