Option to remove entire folders/directoriesSuggestion
Hello,

Did you think about deleting folders in data?

Kind regards,
Adriok
That isn’t possible via a plugin.
Plugins only have access to change datafile contents or create a new one, not to delete anything
In response to 2CHEVSKII ():
Plugins only have access to change datafile contents or create a new one, not to delete anything
Sorry, is there a way to delete data inside data folders?
In response to Adriok ():
Sorry, is there a way to delete data inside data folders?
Try to read messages above.
In response to 2CHEVSKII ():
Try to read messages above.
Ok so, plugin doesn't work or wipe data properly for the following plugins, there might be some more:
- Kits
- CombatLogDb
- FurnaceSplitter
- PlayerRanks
- InfoPanel
- CustomChatCommands
- A few more

Plugin just replaces data files with a ""
In response to Adriok ():
Ok so, plugin doesn't work or wipe data properly for the following plugins, there might be some more...
Data is gone, what confuses you?
In response to 2CHEVSKII ():
Data is gone, what confuses you?
Should probably be setting it as an empty json file, which is sounds like something other than {} is the result for some as the user mentioned.
In response to 2CHEVSKII ():
Data is gone, what confuses you?
Data is gone, but that data is replaced by two quotation marks "" and some plugins doesn't work
Then maintainers of these plugins should think about adding an emergency option for the case of data being corrupt.
But no worries - Ill think of it for them and for you, in the next update ill implement the option to replace data with native clean datafiles of some plugins (It gonna take some time as I need to download all the plugins which utilize the data, and import their classes into mine plugin)
Wulf, could you give me a quick observe on one question - the Oxide.Plugins.Plugin type does not give a reference to actual plugin object? I cant get its nested types (which they use to save data) through reflection? Is there other way to do this, like GetType("Oxide.Plugins.Pluginname")  would work? Not home yet to test.
In response to 2CHEVSKII ():
Then maintainers of these plugins should think about adding an emergency option for the case of data...
I would not suggest doing that. I think the issue here is that invalid JSON is being created, should be an empty json, not an empty string. Outside of that, the developers can handle their data when corrupt, invalid, or empty, get isn’t the role of your plugin and will only lead to more headaches.

Tl;dr: create an empty json object, not an empty string.
In response to Wulf ():
I would not suggest doing that. I think the issue here is that invalid JSON is being created, should...
Yeah, I got you, will do that as I get home.
Will wiping a complete folder like "Folder/*" work? There's a data folder with SteamID.json files, so that would be a lot of hassle :)
That's a good idea, but won't work right now, I'll add this feature in future

Will wiping a complete folder like "Folder/*" work? There's a data folder with SteamID.json files, so that would be a lot of hassle :)