# Save your system space from node_modules using NPKill

### What is NPKill?

**NPKill** tool allows you to list any **node\_modules** directories in your system, as well as the space they take up. You can then select which  
ones you want to erase to free up space.

### Features of NPKill

* **Clear space**: Get rid of old and dusty node modules cluttering up your machine.
    
* **Last Workspace Usage**: Check when was the last time you modified a file in the workspace (indicated in the last\_mod column).
    
* **Very fast**: NPKILL is written in TypeScript, but searches are performed at a low level, improving performance greatly.
    
* **Easy to use**: Say goodbye to lengthy commands. Using npkill is as simple as reading a list of your node\_modules, and pressing Del to get rid of them. Could it be any easier?
    
* **Minified**: It barely has any dependencies.
    

### Installation

You don’t really need to install it to use it! Simply use the following command

```bash
npx npkill
```

Or if for some reason you really want to install it

```bash
npm -i g npkill

# Unix users may need to run the command with sudo. Go carefully
```

### Usage

By default, NPKill will scan for node\_modules starting at the path where the **NPKill** command is executed.

```bash
npx npkill

# or just npkill if installed globally
```

Move between the listed folders with ↓ ↑, and use **Space** to delete the  
selected folder. You can also use **j** and **k** to move between the results.  
To exit, **Q** or **Ctrl + c**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1698054790936/f4d9891d-896d-43a6-8168-dab645fa024d.png align="left")

### Demo 🎥

<iframe src="https://www.youtube.com/embed/QmiSCz-RWx0" width="700" height="393"></iframe>

%[https://www.npmjs.com/package/npkill] 

### Congratulations!!!

In this post, you have learned how to save your system space from node\_modules using NPKill. Will catch you up in a new post till then Happy Learning!!! :)
