Skip to content
Version 2.11.0
↓ Get the launcher

IConfigSection.RemoveByPrefix method

Removes every key in this section whose name begins with prefix (ordinal comparison). Use this to drop a whole group of related keys at once — e.g. all per-resolution sub-keys of one entry. Does NOT write to disk — caller must invoke Save. Keys that don’t match are left untouched; never throws.

public void RemoveByPrefix(string prefix)