How to search for node_modules and delete all in a path

$ find path -name “node_modules” -type d -exec rm -rf {} +

Ion Utale

--

Node modules are essential for developing JavaScript applications. However, they can also take up a lot of disk space, especially if you have multiple projects. In this article, we will show you how to search for and delete all node_modules folders in a path, using a simple…

--

--