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

Python Cache Cleaner

Karfee

|
1 install
| (0) | Free
Recursively cleans up Python cache directories (__pycache__, .pytest_cache, .cache).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Python Cache Cleaner 🧹

A lightweight, no-nonsense VS Code extension designed to instantly wipe out Python cache directories and temporary testing artifacts. Perfect for developers working with large test suites, Playwright automation, or local LLM environments who need a quick way to force-refresh their workspace.


Features

  • One-Click Cleanup: Delete all cache folders recursively from your current workspace.
  • Explorer Context Menu: Right-click on any folder in the File Explorer to clean only that specific directory subtree.
  • Title Bar Icon: A dedicated icon in the Explorer title bar to sweep the entire workspace instantly.

What Does It Clean?

The extension target-cleans the following directories recursively without touching your source code:

Target Directory Description
__pycache__ Python bytecode cache folders
.pytest_cache Testing artifacts generated by Pytest
.cache Local runtime and framework cache directories

Extension UI Components

This extension contributes the following user interface elements:

  • python-cache-cleaner.cleanCache: The core command to trigger the cleanup sequence.
  • Explorer Title Menu: Adds a $(clear-all) icon to the top right of your file tree.
  • Context Menu Entry: Adds a shortcut in the right-click menu when clicking on any folder.

Release Notes

See CHANGELOG.md file.


Enjoy a cleaner workspace! Contributions and feedback are welcome on GitHub.

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