Removes a file or directory. The directory can have contents. If the path does not exist, silently does nothing.
import * as fs from 'fs-extra'// remove filefs.removeSync('/tmp/myfile')fs.removeSync('/home/jprichardson') // I just deleted my entire HOME directory. Copy
import * as fs from 'fs-extra'// remove filefs.removeSync('/tmp/myfile')fs.removeSync('/home/jprichardson') // I just deleted my entire HOME directory.
Generated using TypeDoc
Removes a file or directory. The directory can have contents. If the path does not exist, silently does nothing.