How to delete all node_modules files fast and simple for a repo

Run the following in the repo root folder: (deletes all node_modules folders and its content recursively):

npx rimraf ./**/node_modules

(Npx command is available from NPM version 5.2)
This might take som time since node_module usually contains a lot of files.

Leave a Reply

Your email address will not be published. Required fields are marked *