Displaying 1 to 14 from 14 results

trash - Move files and folders to the trash

  •    Javascript

Works on macOS, Linux, and Windows.In contrast to fs.unlink, del, and rimraf which permanently delete files, this only moves them to the trash, which is much safer and reversible.

del - Delete files and directories

  •    Javascript

Similar to rimraf, but with a Promise API and support for multiple files and globbing. It also protects you against deleting the current working directory and above.Support this project and improve your JavaScript skills with this great ES6 course by Wes Bos. Try his free JavaScript 30 course for a taste of what to expect. You might also like his React and Sublime course.

grunt-contrib-clean - Clear files and folders.

  •    Javascript

This plugin was designed to work with Grunt 0.4.x. If you're still using grunt v0.3.x it's strongly recommended that you upgrade, but in case you can't please use v0.3.2. Run this task with the grunt clean command.

trash-cli - Move files and folders to the trash

  •    Javascript

Works on macOS, Linux, and Windows.In contrast to rm which is dangerous and permanently delete files, this only moves them to the trash, which is much safer and reversible. I would also recommend reading my guide on safeguarding rm.




rm-modules - Recursively remove *all* node_modules directories within the chosen root directory

  •    Javascript

Recursively remove all node_modules directories within the chosen root directory.Useful for cleaning a project which has more than one node_modules tree.

clear-module - Clear a module from the cache

  •    Javascript

Useful for testing purposes when you need to freshly import a module.What you would use with require().


eliminate - Delete files and directories without all the bullshit

  •    Javascript

Deletes the directory or file. If the filepath is a non-empty directory, everything in it will be deleted recursively. The file or directory path to delete.

skrub - Irreversible file deletion on every OS

  •    Javascript

In contrast to rm, which leaves file contents unallocated in memory, skrub first floods file(s) with garbage data and then removes them forever. The current method is low fidelity and "will prevent the data from being retrieved simply by reading using standard system functions". Read more in the FAQ below or on Wikipedia here.