Remove key from configuration

Discussion in 'Plugin Development' started by vildaberper, Jan 26, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    vildaberper

    How do I completely remove a key from a configuration?
    Code:
    c.set(path, null);
    still leaves the key and the value {}.
     
  2. vildaberper
    Could you not get a list of all the nodes, remove the one you don't want and then write the edited list to the file.
     
  3. Offline

    vildaberper

    I guess but I was looking for something like:
    Code:
    c.removeKey(String path);
     
  4. vildaberper
    That is what the method will do. You'll probably just have to write it yourself if it doesn't already exist.
     
Thread Status:
Not open for further replies.

Share This Page