public static base_responses delete ( nitro_service client , route resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { route deleteresources [ ] = new route [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { deleteresources [ i ] = new route ( ) ; deleteresources [ i ] . network = resources [ i ] . network ; deleteresources [ i ] . netmask = resources [ i ] . netmask ; deleteresources [ i ] . gateway = resources [ i ] . gateway ; deleteresources [ i ] . td = resources [ i ] . td ; } result = delete_bulk_request ( client , deleteresources ) ; } return result ; }
Use this API to delete route resources .