I have tried fs unlink/unlinksys remove/removesys. But nothing works.
Once my app quits these files are not being deleted.
Any ideas how I can wipe the whole folder, even if some files are being used when funcs are being triggered on Windows OS?
Any library's or raw js?
I have a angularjs app that is super small and everything but once i log off from app i want to delete everything in "path"
So im using:
fs.removeSync(path);
Which works like a charm on linux, but on windows it does not. Cause same files are still being used by app(obv cause app is in middle of running that function)
Unfortunately not sure what code should i post. Cause thats all there is and it works on linux. On win it does not. How can i make it work on win? Flag it somehow to delete or idk?