Removes by module and its associated name

@param string $module
@param string $name
@return void
545539
public function remove($module, $name)
    {
        $index = 0;

        if ($this->has($module, $name, $index)) {
            unset($this->data[$index]);
        }
    }
618259
public void unloadModule(Module module) {
        Objects.requireNonNull(module, "module");
        unloadModuleLocal(module);
        moduleSpecs.remove(module.getIdentifier());
    }
320446
public final function registerModule(Module $module)
    {
        $dependencies = $module->getModules();

        foreach($dependencies as $dependency){
            $this->registerModule($dependency);
        }

        $this->modules[$module->getModuleName()] = $module;
    }
961938
public function removeFilter($name)
    {
        $filters = $this->config('filters');
        unset($filters[$name]);

        $this->config('filters', $filters, false);
    }
19209
public function deleteByKey($name) : void
    {
        if(!$this->keyExists($name)) {
            return;
        }

        parent::deleteByKey($name);
        unset($_SESSION[$name]);
    }
1363990
public function delete($module, $name)
    {
        $query = sprintf('DELETE FROM `%s` WHERE `module` =:module AND `name` =:name', $this->table);

        $stmt = $this->pdo->prepare($query);
        return $stmt->execute(array(
            ':'.ConstProviderInterface::CONFIG_PARAM_MODULE => $module,
            ':'.ConstProviderInterface::CONFIG_PARAM_NAME => $name
        ));
    }
392726
function unloadModule (module) {
    var found_module = false;

    registered_modules = _.reject(registered_modules, function (registered_module) {
        if (module.toLowerCase() === registered_module.module_name.toLowerCase()) {
            found_module = true;

            registered_module.dispose();
            return true;
        }
    });

    return found_module;
}
1168658
public function unloadModule($name)
    {
        $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: unloading module: '
            ."$name...", __FILE__, __LINE__
        );

        if (isset($this->_modules[$name])) {
            if (in_array('module_exit',
                    get_class_methods(get_class($this->_modules[$name]))
            )) {
                $this->_modules[$name]->module_exit($this);
            }

            unset($this->_modules[$name]);
            $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: successfully'
                ." unloaded module: $name", __FILE__, __LINE__);
            return $this;
        }

        $this->log(SMARTIRC_DEBUG_MODULES, "DEBUG_MODULES: couldn't unload"
            ." module: $name (it's not loaded!)", __FILE__, __LINE__
        );
        return false;
    }
232916
public static function delete($name)
    {
        !isset(self::$init) && self::init();

        setcookie(
            $name, '', $_SERVER['REQUEST_TIME'] - 3600, self::$config['path'],
            self::$config['domain'], self::$config['secure']
        );

        unset($_COOKIE[$name]);
    }
1084281
public function deleteModuleDatabase($module)
	{
		$config = $this->getModuleConfig($module);
		$tableName = $config['db_table_name'];

		if($config && $tableName) {
			foreach($tableName as $val){
				Yii::app()->db->createCommand("DROP TABLE {$val}")->execute();
			}

		} else
			return false;
	}
40346
protected function clearRelationship(string $name): void
    {
        // Clear from the left
        unset($this->relationships[$name]);

        // And clear from the right
        foreach ($this->relationships as $left => &$objectNames) {
            if (isset($objectNames[$name])) {
                unset($objectNames[$name]);
            }
        }
    }
1216549
public function destroy($name) {
        if (isset($this->_events[$name])) {
            unset($this->_events[$name]);
            $this->_events = array_values($this->_events);
        }
    }
388875
public function has($module, $name, &$position = false)
    {
        foreach ($this->data as $index => $row) {
            if ($row[ConstProviderInterface::CONFIG_PARAM_MODULE] == $module && $row[ConstProviderInterface::CONFIG_PARAM_NAME] == $name) {
                if ($position !== false) {
                    $position = $index;
                }

                return true;
            }
        }

        return false;
    }
1311932
public function clear($module=''){
        $file = Config::getx('path_temp').$module.DS.'_router.php';
        if(is_file($file)) {
            unlink($file);
        }
    }
580230
private function setByModule(string $module) : void
    {
        $config = (new ModuleConfig(ConfigType::MODULE(), $module))->parse();
        $fields = $this->getModuleFields($module);

        if (! property_exists($config, 'table')) {
            return;
        }

        if (! property_exists($config->table, 'type')) {
            return;
        }

        if ('module' === $config->table->type) {
            $this->setByTypeModule($module, $fields);
        }

        if ('relation' === $config->table->type) {
            $this->setByTypeRelation($module, $fields);
        }

        if ($module === $this->getTableName()) {
            $this->setByTypeFile($module, $fields);
        }
    }
701738
public function addModule($module) {
        $this->registerModule($module);
        if (is_object($module)) $module = $module->name;
        $this->userModules[] = $module;
    }
1266737
public function unloadModule($module)
    {
        $modules = $module;
        if (!is_array($module)) {
            $modules = [];
            $modules[] = $module;
        }

        $moduleLoadFile = $_SERVER['DOCUMENT_ROOT'] . '/../config/melis.module.load.php';

        if (file_exists($moduleLoadFile)) {
            $loadModules = include $moduleLoadFile;

            foreach ($loadModules as $idx => $loadedModule) {
                if (in_array($loadedModule, $modules)) {
                    unset($loadModules[$idx]);
                }
            }

            $this->createModuleLoader('config/', $loadModules, [], []);
        }

        return false;
    }