website/node_modules/fs-extra/docs/remove-sync.md

removeSync(path)

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

Example:

const fs = require('fs-extra')

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

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


JohnCoene/chirp documentation built on May 25, 2021, 6:33 p.m.