Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Auto CleanerNew to Visual Studio Code? Get it now.
Auto Cleaner

Auto Cleaner

Mayank Manchanda

|
7 installs
| (1) | Free
Automatically deletes node_modules and venv folders when you close a workspace, and restores them on reopen.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Auto Cleaner VS Code Extension

A lightweight extension that helps you manage disk space by cleaning up node_modules and venv folders.

How It Works

This extension provides a command to clean up heavy dependency folders from your workspace or does it automatically as you close your vscode window.

  • Finds Targets: It searches for node_modules and venv folders in your open workspace as you close the vscode window.
  • Creates Restore Script: Before deleting a folder, it creates a auto_cleaner_restore.bat script in the same directory. This script contains the command to restore the dependencies (e.g., npm install).
  • Deletes Folders: It then deletes the target folder to free up space.
  • Restores: Reinstalls packages or recreates virtual environment as per the batch file as you reopen the project file.

OR

  • Manual Cleanup: Use the command palette to run the cleanup process at any time.

Installation

  1. Open Visual Studio Code.
  2. Go to the Extensions view (Ctrl+Shift+X).
  3. Search for Auto Cleaner.
  4. Find the extension published by mayank-1007 and click Install.

Commands

You can run the cleanup process manually from the Command Palette (Ctrl+Shift+P):

  • Auto Cleaner: Delete and Log Now: Finds and deletes all node_modules and venv folders in the current workspace.

Happy coding! Your disk is cleaner, and your projects are tidier.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft