How to use fs.unlink

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.

You need to use /app/img/image.png for the path (no . before /app).