In this video, learn
How To Delete a File in Node Js - Async & Sync
Notes:
In Node.js, from fs module,
provides an api
'fs.unlink()' to 'Asynchronously delete a file
'fs.unlinkSync()' to 'Synchronously delete a file
syntax:
'fs.unlink(filePath, callbackFunction)
'fs.unlinkSync(filePath)
-----------------------------------------------------------------------------------
Error::
ENOENT: no such file or directory, unlink './todelete/sample.txt'
Thank You
#JavaInspires
#NodeJsPractice
#SilentTutorial
---------------------------------------------------------------------------------
Facebook / javainspires
Twitter / javainspires
Pinterest / boards
Linked In / java-inspires-b782621a7
Reddit / javainspires_
Tumblr / javainspires
Blogger https://javainspires.blogspot.com/
---------------------------------------------------------------------------------
Watch video How To Delete a File in Node Js - Async & Sync | Java Inspires online without registration, duration hours minute second in high quality. This video was added by user Java Inspires 02 May 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,046 once and liked it 25 people.