In general, you need to delete the file on the server! Read and write the module jsonfile! But I tried to delete it in every way and fs.remove and fs.unlink are not deleted! Tell me pliz :)
router.get("/delFile", function (req, res) { var file = 'data/myFile.json'; fs.remove(file); res.end(); }); Or on the server, this module removes another function?
Thanks in advance for your reply.