code: public static base_responses flush(nitro_service client, cacheobject resources[]) throws Exception {
  		base_responses result = null;
  		if (resources != null && resources.length > 0) {
  			cacheobject flushresources[] = new cacheobject[resources.length];
  			for (int i=0;i<resources.length;i++){
  				flushresources[i] = new cacheobject();
  				flushresources[i].locator = resources[i].locator;
  				flushresources[i].url = resources[i].url;
  				flushresources[i].host = resources[i].host;
  				flushresources[i].port = resources[i].port;
  				flushresources[i].groupname = resources[i].groupname;
  				flushresources[i].httpmethod = resources[i].httpmethod;
  				flushresources[i].force = resources[i].force;
  			}
  			result = perform_operation_bulk_request(client, flushresources,"flush");
  		}
  		return result;
  	}
docs: Use this API to flush cacheobject resources.