code: public synchronized void removeScriptModule(ModuleId scriptModuleId) {
          jbossModuleLoader.unloadAllModuleRevision(scriptModuleId.toString());
          ScriptModule oldScriptModule = loadedScriptModules.remove(scriptModuleId);
          if (oldScriptModule != null) {
              notifyModuleUpdate(null, oldScriptModule);
          }
      }
docs: Remove a module from being served by this instance. Note that any
  instances of the module cached outside of this module loader will remain
  un-effected and will continue to operate.