Files
Ceras/themes/ceras/node_modules/fs-extra/docs/remove-sync.md
T
2023-07-12 16:31:19 +01:00

299 B
Executable File

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.