Ability to remove file from disk would be great.
Preferences.remove('com.your.app.identifier') or something similar would be fantastic.
Is there a possible way to it? Anyone?
I ended up doing this, but I am new to node and I am sure I messed something up.
var fs = require('fs'); var homedir = require('os-homedir')(); var path = require('path'); var dirpath = path.join(homedir, '.config', 'preferences'); var filepath = path.join(dirpath, "namespace you used when you created the file.pref"); fs.unlinkSync(filepath);
Preferences.remove('com.your.app.identifier') or something similar would be fantastic.
Actually it would break compatibility. It's however a good idea, we could release it in the next major version, thanks.
Any progress here?