I want to create a function that removes a file from the server. I intend to use this function to restore settings (i.e. db files) to their default state. I run my server us
You cannot use Node's fs in the browser and have it directly affect the file system on the server. fs is for use on locally available file systems only. You will need to create an API or use some other technique.