rpgmaker-linux/nwjs/packagefiles/tyranobuilder/node_modules/fs-extra/docs/remove-sync.md
2024-07-01 20:40:59 +03:00

335 B

removeSync(path)

Removes a file or directory. The directory can have contents. If the path does not exist, silently does nothing.

  • 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.