protected static base_responses delete_bulk_request(nitro_service service,base_resource resources[]) throws Exception
	{
		if (!service.isLogin())
			service.login();

		options option = new options();
		option.set_action("rm");
		String type = resources[0].get_object_type();
		if (type.indexOf("_binding") > 0)
		{
			option.set_action("unbind");
		}
		String id = service.get_sessionid();
		String onerror = service.get_onerror();
		Boolean warning = service.get_warning();
		String request = service.get_payload_formatter().resource_to_string(resources, id, option,warning, onerror);
		base_responses result = post_bulk_data(service,request);
		return result;

	}
protected static base_responses delete_bulk_request ( nitro_service service , base_resource resources [ ] ) throws Exception { if ( ! service . isLogin ( ) ) service . login ( ) ; options option = new options ( ) ; option . set_action ( "rm" ) ; String type = resources [ 0 ] . get_object_type ( ) ; if ( type . indexOf ( "_binding" ) > 0 ) { option . set_action ( "unbind" ) ; } String id = service . get_sessionid ( ) ; String onerror = service . get_onerror ( ) ; Boolean warning = service . get_warning ( ) ; String request = service . get_payload_formatter ( ) . resource_to_string ( resources , id , option , warning , onerror ) ; base_responses result = post_bulk_data ( service , request ) ; return result ; }
Use this method to perform a delete operation on netscaler resources.
@param service nitro_service object.
@param resources Nitro resources to be deleted on netscaler.
@param option options class object.
@return status of the performed operation.
@throws Exception  Nitro exception is thrown.