def _api_queue_purge(output, value, kwargs):
 removed = NzbQueue.do.remove_all(kwargs.get('search'))
 return report(output, keyword='', data={'status': bool(removed), 'nzo_ids': removed})

def _api_queue_purge ( output , value , kwargs ) : removed = NzbQueue . do . remove_all ( kwargs . get ( 'search' ) ) return report ( output , keyword = '' , data = { 'status' : bool ( removed ) , 'nzo_ids' : removed } )
api: accepts output .