removing of a configuration which is not longer available;
removes the corresponding tree filter also

@param config the OSGi filter configuration object to remove
14656
protected synchronized void unbindFilterConfiguration(final FilterConfiguration config) {
        nodeFilters.remove(config.getName());
        filterConfigurations.remove(config);
    }
991138
public static base_response clear(nitro_service client, nsconfig resource) throws Exception {
		nsconfig clearresource = new nsconfig();
		clearresource.force = resource.force;
		clearresource.level = resource.level;
		return clearresource.perform_operation(client,"clear");
	}
1362482
public static void setFessConfig(final FessConfig fessConfig) {
        ComponentUtil.fessConfig = fessConfig;
        if (fessConfig == null) {
            FessProp.propMap.clear();
            componentMap.clear();
        }
    }
387524
@Override
    public void removeAppender(String name) {
        if (name == null || appenderList == null)
            return;
        Iterator<Appender> it = appenderList.iterator();
        while (it.hasNext()) {
            Appender a = (Appender) it.next();
            if (name.equals(a.getName())) {
                it.remove();
                configuredAppenderList.remove(a.getName());
                break;
            }
        }
    }
684428
protected function _remove($config)
    {
        if ($config['namespaced'] && !is_dir($config['destDir'])) {
            $this->verbose(
                $config['destDir'] . $config['link'] . ' does not exist',
                1
            );

            return false;
        }

        $dest = $config['destDir'] . $config['link'];

        if (!file_exists($dest)) {
            $this->verbose(
                $dest . ' does not exist',
                1
            );

            return false;
        }

        if (is_link($dest)) {
            // @codingStandardsIgnoreLine
            if (@unlink($dest)) {
                $this->out('Unlinked ' . $dest);

                return true;
            } else {
                $this->err('Failed to unlink  ' . $dest);

                return false;
            }
        }

        $folder = new Folder($dest);
        if ($folder->delete()) {
            $this->out('Deleted ' . $dest);

            return true;
        } else {
            $this->err('Failed to delete ' . $dest);

            return false;
        }
    }
1233671
public void setConfiguration(VirtualHost config) {
        this.config = config;
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "setConfiguration", "config set ->"+ this.config);
        }
    }
893106
public void removeThreadPool(ServerConfig serverConfig) {
        Lookout.registry().removeMetric(rpcLookoutId.removeServerThreadConfigId(serverConfig));
        Lookout.registry().removeMetric(rpcLookoutId.removeServerThreadPoolActiveCountId(serverConfig));
        Lookout.registry().removeMetric(rpcLookoutId.removeServerThreadPoolIdleCountId(serverConfig));
        Lookout.registry().removeMetric(rpcLookoutId.removeServerThreadPoolQueueSizeId(serverConfig));
    }
189650
public static void closeServerIoEventLoopGroup(ServerTransportConfig config) {
        EventLoopGroup ioGroup = serverIoGroups.get(config.getProtocolType());
        if (closeEventLoopGroupIfNoRef(ioGroup)) {
            serverIoGroups.remove(config.getProtocolType());
        }
    }
501331
@Override
    public void removeAppender(Appender appender) {
        if (appender == null || appenderList == null)
            return;
        appenderList.remove(appender);
        configuredAppenderList.remove(appender.getName());
    }
1128115
def do_remove(config, config_dir):
    
    if not os.path.exists(config_dir):
        print "Configuration '{}' does not exist.".format(config)
        exit(1)
    if confirm("Confirm removal of the configuration '{}'".format(config)):
        shutil.rmtree(config_dir)
        print "Configuration '{}' has been removed.".format(config)
    else:
        print "Removal cancelled."
1270802
public static function close($config = null) {
		if ($config === null) {
			// Close all
			foreach (self::$created_driver as $k => $v) {
				$hash = spl_object_hash($v);
				if (isset(self::$created_adapter[$hash])) {
					unset(self::$created_adapter[$hash]);
				}
				unset(self::$created_driver[$k]);
			}
		} else {
			if (is_string($config)) {
				$config = Yesf::app()->getConfig('connection.' . $config);
			}
			if (!isset($config['driver'])) {
				throw new ConnectionException("Unknown driver");
			}
			if (!isset($config['host']) || !isset($config['port'])) {
				throw new ConnectionException("Host and Port is required");
			}
			$hash = md5($config['driver'] . ':' . $config['host'] . ':' . $config['port']);
			if (isset(self::$created_driver[$hash])) {
				$adapter_hash = spl_object_hash(self::$created_driver[$hash]);
				if (isset(self::$created_adapter[$adapter_hash])) {
					unset(self::$created_adapter[$adapter_hash]);
				}
				unset(self::$created_driver[$hash]);
			}
		}
	}
144135
function remove(oTarget, oListener, oConfiguration) {
		oConfiguration = oConfiguration || getConfiguration(oTarget, oListener);
		updateConfiguration(oTarget, oListener, oConfiguration, true);
	}
574402
function isValidConfig(config) {
    return (config.root != null && config.root.length > 0) &&
            isNullOrFunction(config.directoryFilter) &&
            isNullOrFunction(config.filesFilter) &&
            isNullOrString(config.directoryFilterRegex) &&
            isNullOrString(config.filesFilterRegex);
}
1369348
@Override
	public void unregisterOsgiProviders () throws FhirConfigurationException {
		// need to make a copy to be able to remove items
		Collection<Object> providers = new ArrayList<Object>();
		providers.addAll(this.serverProviders);
		this.unregisterOsgiProviders(providers);
	}
225611
private void closeConfig(Config config) {
        if (config instanceof WebSphereConfig) {
            try {
                ((WebSphereConfig) config).close();
            } catch (IOException e) {
                throw new ConfigException(Tr.formatMessage(tc, "could.not.close.CWMCG0004E", e));
            }
        }
    }
440521
@Override
    public String remove(Object key) {

        String result = m_configurationStrings.remove(key);
        m_configurationObjects.remove(key);
        return result;
    }
1287486
public void clearUnused(ConfigImpl config) {

	SystemOut.printDate(config.getOutWriter(), "PagePool: " + size() + ">(" + maxSize + ")");
	if (size() > maxSize) {
	    String[] keys = keys();
	    LongKeyList list = new LongKeyList();
	    for (int i = 0; i < keys.length; i++) {
		PageSource ps = getPageSource(keys[i], false);
		long updateTime = ps.getLastAccessTime();
		if (updateTime + timeout < System.currentTimeMillis()) {
		    long add = ((ps.getAccessCount() - 1) * 10000);
		    if (add > timeout) add = timeout;
		    list.add(updateTime + add, keys[i]);
		}
	    }
	    while (size() > maxSize) {
		Object key = list.shift();
		if (key == null) break;
		remove(key.toString());
	    }
	}
    }