Newer
Older
CVSS_3.0_GUI / dist / CVSS_3.0_Calc-1.0.0-linux-x64 / node_modules / nwjs-builder-phoenix / node_modules / fs-extra / docs / remove-sync.md
root on 7 May 2019 299 bytes Initial commit

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.