Is it safe to delete .mypy_cache / .pytest_cache?

<project>/.mypy_cache · Safe to delete

What it is

Type checker and test caches in Python projects.

Can you delete it?

Yes, it is rebuilt automatically. Rebuilt on the next run.

How to clean it safely

  1. Delete .mypy_cache, .pytest_cache and .ruff_cache.

Step-by-step guide: Clean up Python environments →

Questions

Is it safe to delete <project>/.mypy_cache?

Yes, it is rebuilt automatically. Rebuilt on the next run.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac