code: public void undeploy(ResourceAdapterArchive raa) throws Throwable
     {
        if (raa == null)
           throw new IllegalArgumentException("Url is null");
  
        if (!started)
           throw new IllegalStateException("Container not started");
  
        File parentDirectory = new File(SecurityActions.getSystemProperty("java.io.tmpdir"));
        File raaFile = new File(parentDirectory, raa.getName());
  
        log.debugf("Undeploying: %s", raaFile);
  
        if (shrinkwrapDeployments == null || !shrinkwrapDeployments.contains(raaFile))
           throw new IOException(raa.getName() + " not deployed");
  
        kernel.getMainDeployer().undeploy(raaFile.toURI().toURL());
  
        removeDeployment(raaFile);
     }
docs: Undeploy
  @param raa The resource adapter archive
  @exception Throwable If an error occurs