Harshit Saini
Harshit Saini's Blog

Harshit Saini's Blog

Delete all node_modules folder using npkill

Delete all node_modules folder using npkill

Harshit Saini
·Apr 2, 2021·

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Step 1: Install it

sudo npm i -g npkill

Or you can use it without installing with npx

npx npkill

Step 2:

Go the directory where you want to scan for node_modules folder

npkill     # if you have installed it

npx npkill     # if you have not installed it

Step 3: Delete the unwanted node_modules folder

  1. Use the arrow keys to navigate.
  2. Press the space key to delete the selected folder.
  3. To exit press q or ctrl + c


The default folder to scan is "." that is the current dir.


For more information about the flags that can to be used visit

npkill - main

 
Share this