code: public void unloadAllModuleRevision(String scriptModuleId) {
          for (ModuleIdentifier revisionId : getAllRevisionIds(scriptModuleId)) {
              if (revisionId.getName().equals(scriptModuleId)) {
                  unloadModule(revisionId);
              }
          }
      }
docs: Unload all module revisions with the give script module id