code: public void destroy()
     {
        if (log.isDebugEnabled())
        {
           log.debug("Undeploying: " + archive.toExternalForm());
        }
  
        /*
          We let Jetty handle this during server.stop()
        if (handler != null)
        {
           try
           {
              handler.stop();
           }
           catch (Throwable t)
           {
              // Ignore
           }
  
           handler.destroy();
           handler = null;
        }
        */
  
        if (cl != null && cl instanceof Closeable)
        {
           try
           {
              ((Closeable)cl).close();
           }
           catch (IOException ioe)
           {
              // Swallow
           }
        }
  
        if (tmpDirectory != null && tmpDirectory.exists())
        {
           try
           {
              FileUtil fu = new FileUtil();
              fu.delete(tmpDirectory);
           }
           catch (IOException ioe)
           {
              // Ignore
           }
        }
  
        log.info("Undeployed: " + archive.toExternalForm());
     }
docs: Destroy