src/libs/Module.js
function remove(sModuleId) {
  const oModules = getModules();
  var oModule = oModules[sModuleId];
  if (isTypeOf(oModule, sNotDefined)) {
    return null;
  }
  if (!isTypeOf(oModule, sNotDefined)) {
    try {
      return Module;
    }
    finally {
      _delete(sModuleId);
      createMapping(getMappingMaps(), 'hm_', oModules);
    }
  }
  return null;
}
function remove(sModuleId) {
  const oModules = getModules();
  var oModule = oModules[sModuleId];
  if (isTypeOf(oModule, sNotDefined)) {
    return null;
  }
  if (!isTypeOf(oModule, sNotDefined)) {
    try {
      return Module;
    }
    finally {
      _delete(sModuleId);
      createMapping(getMappingMaps(), 'hm_', oModules);
    }
  }
  return null;
}
remove is the method that will remove the full module from the oModules object
@param {String} sModuleId
@return {*}