mirror of
https://github.com/jprichardson/node-fs-extra.git
synced 2026-01-18 16:13:55 +00:00
350 B
350 B
removeSync(path)
Removes a file or directory. The directory can have contents. If the path does not exist, silently does nothing. 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.