New erase() method for DynamicConfig objects