Hello! I have a img folder and there is a file named image.png inside. I am try to delete this file but i can’t. I am used this code.
fs.unlink("./app/img/image.png", function(err){
if(err) return console.log(err);
console.log("i delete it")
});
and i got this error
{ Error: ENOENT: no such file or directory, unlink './app/img/image.png'
errno: -2,
code: 'ENOENT',
syscall: 'unlink',
path: './app/img/image.png' }
i want help.