Bones/node_modules/fs-extra/docs/remove-sync.md
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00

299 B

removeSync(path)

Removes a file or directory. The directory can have contents. Like rm -rf.

  • path <String>

Example:

const fs = require('fs-extra')

// remove file
fs.removeSync('/tmp/myfile')

fs.removeSync('/home/jprichardson') // I just deleted my entire HOME directory.