In this video, we will learn how to delete a directory usinf fs module in node js.
In Node.js, from fs module,
provides an api
'fs.rmdir()' to 'Asynchronously delete a directory
'fs.rmdirSync()' to 'Synchronously delete a directory
syntax:
'fs.rmdir(path[, options], callback)
'fs.rmdirSync(path[, options])
Error in deletetion ..
ENOENT: no such file or directory, rmdir 'deleteFolder'
#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 Directory 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 09 May 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 506 once and liked it 4 people.