Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to remove file from disk would be great. #2

Open
Schandlich opened this issue Nov 28, 2016 · 4 comments
Open

Ability to remove file from disk would be great. #2

Schandlich opened this issue Nov 28, 2016 · 4 comments
Assignees

Comments

@Schandlich
Copy link

Preferences.remove('com.your.app.identifier') or something similar would be fantastic.

@SebastinSanty
Copy link

Is there a possible way to it? Anyone?

@Schandlich
Copy link
Author

Schandlich commented Dec 8, 2016

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);

@lastguest
Copy link
Contributor

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.

@lastguest lastguest self-assigned this May 26, 2017
@stephenmathieson
Copy link

Any progress here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants