public void deleteTarget ( String targetId ) throws TargetWsException { this . logger . finer ( "Deleting target " + targetId ) ; WebResource path = this . resource . path ( UrlConstants . TARGETS ) . path ( targetId ) ; ClientResponse response = this . wsClient . createBuilder ( path ) . accept ( MediaType . APPLICATION_JSON ) . delete ( ClientResponse . class ) ; handleResponse ( response ) ; }
Deletes a target .