How can I remove a line from a config if I have set it with "setNested" before? When I try to remove it does not work
when you set the variable as nested, you basically made an array. use this to help you: PHP: if(isset($config->getAll()[$key])) { $arr = $config->getAll(); unset($arr[$key]); $config->setAll($arr);} $key is what comes before the . $config is an instance of Config
Note that setNested() and getNested() are made for real config files that are used for configuration, not for saving data, and hence usually one wouldn't want to remove an attribute from a config file.