Skip to content

Python bytecode (__pycache__)

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. Python writes it again the next time the code runs.

Where it is

Wherever it is on your disk: DiskCity recognises it by what's inside (for example a project's own files), not by one fixed path.

Is it safe to delete?

Yes. Python writes it again the next time the code runs.

How to remove it

  1. Leave anything opened or changed less than 30 days ago (for a folder, its newest file counts). DiskCity waits that long too.
  2. 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.