- Home /
Is there a way I can remove files from Application.persistantDataPath?
I've been watching tutorials on how to save and load game data by using the BinaryFormatter. Once I figured out how it works, I started playing around with different paths like "player.dat", "player.abc", "player.one",... I was doing this for testing purposes. Now is this gonna cause any problems? I feel like I've created waay too many files in the Application.persistantDataPath folder (wherever that is). Of course I'm not gonna use so many files in the final version of the game. I'm only gonna use "player.dat". Do I have to delete the other files that I created? If so, then how?
Answer by Bunny83 · Jul 26, 2019 at 01:59 AM
Uhm, why don't you just print out the persistant data path and visit it with your OS tools? Apart from that you can delete files with File.Delete, nothing really Unity related. A file is a file.