code: 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 ) );
  	}
docs: Removes an instance.
  
  @param applicationName the application name
  @param instancePath    the path of the instance to remove