public static base_responses delete ( nitro_service client , String trapclass [ ] ) throws Exception { base_responses result = null ; if ( trapclass != null && trapclass . length > 0 ) { snmptrap deleteresources [ ] = new snmptrap [ trapclass . length ] ; for ( int i = 0 ; i < trapclass . length ; i ++ ) { deleteresources [ i ] = new snmptrap ( ) ; deleteresources [ i ] . trapclass = trapclass [ i ] ; } result = delete_bulk_request ( client , deleteresources ) ; } return result ; }
Use this API to delete snmptrap resources of given names .