pytest cache
Last updated 1 November 2026
What it is, where it lives on your Mac, and whether it’s safe to delete.
Safe to delete
Yes. pytest fills it again on its next run.
Where it is
Usually a .pytest_cache folder inside a Python project. DiskCity recognises it by what's inside, wherever it is.
Is it safe to delete?
Yes. pytest fills it again on its next run.
How to remove it
- Leave anything opened or changed less than 30 days ago (for a folder, its newest file counts). DiskCity waits that long too.
- Remove it from inside the app or tool that made it, or find it in Finder and move it to the Trash.
What DiskCity does with it
DiskCity labels it as rebuildable and removes it when you approve, or on its own if you turn on Autopilot. It only suggests it once it hasn't been used for 30 days.
