@ RequirePOST public synchronized void doDoDelete ( StaplerResponse rsp ) throws IOException , ServletException { getConfigFile ( ) . delete ( ) ; getParent ( ) . logRecorders . remove ( name ) ; // Disable logging for all our targets, // then reenable all other loggers in case any also log the same targets for ( Target t : targets ) t . disable ( ) ; for ( LogRecorder log : getParent ( ) . logRecorders . values ( ) ) for ( Target t : log . targets ) t . enable ( ) ; rsp . sendRedirect2 ( ".." ) ; }
Deletes this recorder then go back to the parent .