Remove milestoneModules

@param \CampaignChain\CoreBundle\Entity\MilestoneModule $milestoneModules
352128
public function removeMilestoneModule(\CampaignChain\CoreBundle\Entity\MilestoneModule $milestoneModules)
    {
        $this->milestoneModules->removeElement($milestoneModules);
    }
264570
protected void remove(CmsUUID structureId, String rootPath, int type) {

        if (!isContainerConfiguration(rootPath, type)) {
            return;
        }
        m_updateSet.add(structureId);
    }
636276
protected function _deleteModule($sModuleId)
    {
        $aExt = \OxidEsales\Eshop\Core\Registry::getConfig()->getModulesWithExtendedClass();

        $aUpdatedExt = $this->diffModuleArrays($aExt, $sModuleId);
        $aUpdatedExt = $this->buildModuleChains($aUpdatedExt);

        \OxidEsales\Eshop\Core\Registry::getConfig()->saveShopConfVar('aarr', 'aModules', $aUpdatedExt);
    }
862188
public function clearCache($reactivateModules = true)
    {
        $this->routes = array();
        
        if ($reactivateModules) {
            $this->framework->getModuleManager()->reactivateModules();
        }
    }
585041
function (pageId) {
            var modRefpaths = (pageId && this._modulesPaths.page[pageId]) ? this._modulesPaths.page[pageId] : [];
            this._unloadModules(modRefpaths);
            delete this._modulesPaths.page[pageId];
        }
965887
public function removeToken(\CampaignChain\Security\Authentication\Client\OAuthBundle\Entity\Token $tokens)
    {
        $this->tokens->removeElement($tokens);
    }
470942
public function disableModules($enabledModules)
    {
        $coreModules = $this->getCoreModules();

        foreach ($enabledModules as $moduleToDisable => $value) {
            if (isset($coreModules[$moduleToDisable])) {
                continue;
            }
            $module = $this->module->get($moduleToDisable);
            $module->disable();
        }
    }
419497
public function removeLocationModule(\CampaignChain\CoreBundle\Entity\LocationModule $locationModules)
    {
        $this->locationModules->removeElement($locationModules);
    }
97969
function _unregister(modules) {
                    if (angular.isDefined(modules)) {
                        if (angular.isArray(modules)) {
                            angular.forEach(modules, function (module) {
                                regInvokes[module] = undefined;
                            });
                        }
                    }
                }
426294
protected function _deleteModuleVersions($sModuleId)
    {
        $aVersions = (array) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('aModuleVersions');
        unset($aVersions[$sModuleId]);

        $this->_saveToConfig('aModuleVersions', $aVersions);
    }
387067
public function uninstall_cleanup() {
        global $DB, $CFG;

        if (!$module = $DB->get_record('modules', array('name' => $this->name))) {
            parent::uninstall_cleanup();
            return;
        }

        // Delete all the relevant instances from all course sections.
        if ($coursemods = $DB->get_records('course_modules', array('module' => $module->id))) {
            foreach ($coursemods as $coursemod) {
                // Do not verify results, there is not much we can do anyway.
                delete_mod_from_section($coursemod->id, $coursemod->section);
            }
        }

        // Increment course.cacherev for courses that used this module.
        // This will force cache rebuilding on the next request.
        increment_revision_number('course', 'cacherev',
            "id IN (SELECT DISTINCT course
                      FROM {course_modules}
                     WHERE module=?)",
            array($module->id));

        // Delete all the course module records.
        $DB->delete_records('course_modules', array('module' => $module->id));

        // Delete module contexts.
        if ($coursemods) {
            foreach ($coursemods as $coursemod) {
                \context_helper::delete_instance(CONTEXT_MODULE, $coursemod->id);
            }
        }

        // Delete the module entry itself.
        $DB->delete_records('modules', array('name' => $module->name));

        // Cleanup the gradebook.
        require_once($CFG->libdir.'/gradelib.php');
        grade_uninstalled_module($module->name);

        // Do not look for legacy $module->name . '_uninstall any more,
        // they should have migrated to db/uninstall.php by now.

        parent::uninstall_cleanup();
    }
950821
public function removeHook(\CampaignChain\CoreBundle\Entity\Hook $hooks)
    {
        $this->hooks->removeElement($hooks);
    }
741056
public function removeCampaignModule(\CampaignChain\CoreBundle\Entity\CampaignModule $campaignModules)
    {
        $this->campaignModules->removeElement($campaignModules);
    }
250380
protected function _deleteTemplateFiles($sModuleId)
    {
        $aTemplates = (array) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('aModuleTemplates');
        unset($aTemplates[$sModuleId]);

        $this->_saveToConfig('aModuleTemplates', $aTemplates);
    }
1227991
public function removeModuleConfigs(array $module_configs) {
    $module_configs_filtered = array_filter($module_configs, [$this, 'filterConfigsList']);
    if (empty($module_configs_filtered)) {
      return;
    }
    foreach ($module_configs_filtered as $config) {
      $this->configFactory->getEditable($config)->delete();
    }
  }
370216
public static function delete_modules($cmids) {
        global $CFG, $DB;

        // Require course file containing the course delete module function.
        require_once($CFG->dirroot . "/course/lib.php");

        // Clean the parameters.
        $params = self::validate_parameters(self::delete_modules_parameters(), array('cmids' => $cmids));

        // Keep track of the course ids we have performed a capability check on to avoid repeating.
        $arrcourseschecked = array();

        foreach ($params['cmids'] as $cmid) {
            // Get the course module.
            $cm = $DB->get_record('course_modules', array('id' => $cmid), '*', MUST_EXIST);

            // Check if we have not yet confirmed they have permission in this course.
            if (!in_array($cm->course, $arrcourseschecked)) {
                // Ensure the current user has required permission in this course.
                $context = context_course::instance($cm->course);
                self::validate_context($context);
                // Add to the array.
                $arrcourseschecked[] = $cm->course;
            }

            // Ensure they can delete this module.
            $modcontext = context_module::instance($cm->id);
            require_capability('moodle/course:manageactivities', $modcontext);

            // Delete the module.
            course_delete_module($cm->id);
        }
    }
746074
void removeNonExistingSystemEntityTypes() {
    // get all system entities
    List<EntityType> removedSystemEntityMetas =
        dataService
            .findAll(ENTITY_TYPE_META_DATA, EntityType.class)
            .filter(EntityTypeUtils::isSystemEntity)
            .filter(this::isNotExists)
            .collect(toList());

    dataService.getMeta().deleteEntityType(removedSystemEntityMetas);
    removedSystemEntityMetas.forEach(
        entityType ->
            mutableAclClassService.deleteAclClass(EntityIdentityUtils.toType(entityType)));
  }