UNPKG

fs-extra

Version:

fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.

17 lines (10 loc) 299 B
# removeSync(path) Removes a file or directory. The directory can have contents. Like `rm -rf`. - `path` `<String>` ## Example: ```js const fs = require('fs-extra') // remove file fs.removeSync('/tmp/myfile') fs.removeSync('/home/jprichardson') // I just deleted my entire HOME directory. ```