Dev-Cleaner is a lightweight PowerShell-based tool designed to free up disk space by cleaning up common build and dependency folders in JavaScript/Node projects โ such as node_modules, dist, .next, and more.
No setup required. Just run the script or use the bundled .exe.
Modern JavaScript projects generate large folder structures during development and builds. This tool helps you:
Reclaim disk space
Keep your projects tidy
Avoid clutter in old or unused folders
๐ Recursive folder search for:
node_modules
.next
dist
build
coverage
๐ง Smart filtering to avoid redundant deletions
โณ Checks for recent modifications and asks for confirmation
๐ Multilingual: supports English and Portuguese automatically
๐ป EXE version included for easy use
๐ Cleanup report:
Folders deleted
Space freed
Paths affected
Option 1: Using PowerShell script Open PowerShell
Go to the folder where the script is saved
Run the script by typing its name (e.g., .\dev-cleaner.ps1)
Option 2: Using the EXE file Double-click dev-cleaner.exe
It will scan and guide you through the cleanup
โ No installation required!
Windows PowerShell 5.1 or newer
Permissions to delete folders in the scanned directories
Project cleanup started. Target folders: -> node_modules -> dist -> build -> .next -> coverage
Searching for folders to delete...
[DEL] C:\Projects\old-app\node_modules โ 153.2 MB
[DEL] C:\Projects\archive\dist โ 22.4 MB
Cleanup Summary Total time: 00:00:15 Folders deleted: 2 Freed space: 175.6 MB
Language settings (auto-detected)
Feel free to open issues, suggest improvements, or submit pull requests. Contributions are welcome!
๐ค Author Igor Neves ๐ https://github.com/igaaoo
๐ License This project is licensed under the MIT License.