#FileConfiguration

1 messages · Page 1 of 1 (latest)

delicate relic
#

Hi 👋 i have a question about FileConfiguration, is there some simple way to remove all keys and values from yml file? I looking on google but everything i find is too complicated, i tried something like .getKeys(true).remove("Events.test1") but without any error it does nothing.

serene adder
#

Yes

#

new FileConfiguration().save(new File("file.yml"));

delicate relic
#

Im already saving it but still nothing.

strange mist
#

Set the root as null or simply delete the file