Delete data file with DataFileSystem?Solved
Hello guys!

Looking to delete a previously created file in the Data.
I have a Townie Plugin and I am storing each town in an individual json file. But if a town is disbanded I need the ability to delete the json file for that town. How do I do this?

I am guessing it would look something like:
Interface.Oxide.DataFileSystem.DeleteObject()

Just curious as I can't find anything in the docs regarding file deletion.
You would write your own object again, just as you originally created it. There is no handling for deleting files at the moment.
Locked automatically