@ Override @ RequirePOST public HttpResponse doDoDelete ( ) throws IOException { checkPermission ( DELETE ) ; try { T node = getNode ( ) ; if ( node != null ) { // No need to terminate nodes again node . terminate ( ) ; } return new HttpRedirect ( ".." ) ; } catch ( InterruptedException e ) { return HttpResponses . error ( 500 , e ) ; } }
When the agent is deleted free the node right away .