sachin sachin - 1 year ago 105
Node.js Question

Remove directory which is not empty

In my Node application I need to remove a directory which has some files, but

only works on empty directories. How can I do this?

Answer Source

There is a module for this called rimraf it provides the same functionality of rm -Rf

https://npmjs.org/package/rimraf

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download