1. For example if my plugin creates data file with those fields:

    Code:
    {
      "examplename": {
      "exampledata": {
          "example1": 5,
          "example2": 7,
          "example3": 9,
         }
      }
    }
    
    How can I edit those with the said plugin?
     
  2. No one can help unless you show the real data and tell us what plugin this is from
     
    Last edited by a moderator: Mar 18, 2018
  3. Wulf

    Wulf Community Admin

    If manually editing: unload the plugin, open the data file, edit it, save it, load the plugin.

    If editing via the plugin itself, you'd need to provide details.
     
  4. So in other words it's complicated...

    But is there an easy way to clear the whole file using something like

    Code:
    storedData.MyProfile.Remove();
    Interface.Oxide.DataFileSystem.WriteObject("Test", storedData);   
     
    ?
     
  5. Wulf

    Wulf Community Admin

    Not really complicated, just depends on what you want to do. Clearing isn't really the same thing as editing it, but both can be handled a similar way. Should just be a matter of setting the object you want to null and writing that or writing null or an empty JSON object to it.
     
  6. Solved.