public void removeInstance ( String applicationName , String instancePath ) { this . logger . finer ( String . format ( "Removing instance \"%s\" from application \"%s\"..." , instancePath , applicationName ) ) ; WebResource path = this . resource . path ( UrlConstants . APP ) . path ( applicationName ) . path ( "instances" ) . queryParam ( "instance-path" , instancePath ) ; this . wsClient . createBuilder ( path ) . delete ( ) ; this . logger . finer ( String . format ( "Instance \"%s\" has been removed from application \"%s\"" , instancePath , applicationName ) ) ; }
Removes an instance .