def delete_containers(logger, conf):
 def _deleter(url, token, container):
  try:
   client.delete_container(url, token, container)
  except client.ClientException as e:
   if (e.http_status != HTTP_CONFLICT):
    logger.warn(("Unable to delete container '%s'. Got http status '%d'." % (container, e.http_status)))
 _func_on_containers(logger, conf, 'del_concurrency', _deleter)

def delete_containers ( logger , conf ) : def _deleter ( url , token , container ) : try : client . delete_container ( url , token , container ) except client . ClientException as e : if ( e . http_status != HTTP_CONFLICT ) : logger . warn ( ( "Unable to delete container '%s'. Got http status '%d'." % ( container , e . http_status ) ) ) _func_on_containers ( logger , conf , 'del_concurrency' , _deleter )
utility function to delete benchmark containers .