Skip to content

Codex sessions

Last updated 1 November 2026

What it is, where it lives on your Mac, and whether it’s safe to delete.

Check before deleting

Only if you're sure you don't need it. Can't be rebuilt: old session logs. They go to the Recycling Yard first.

Where it is

~/.codex/sessions/????/??/??

What it is

Codex saves each session's log (rollout-<date>-<id>.jsonl) in a folder per day, ~/.codex/sessions/<year>/<month>/<day>; only codex resume reads them.

Only day folders untouched for 30 days, and they go to the Recycling Yard. Codex's databases, settings, sign-in and plugins stay.

Is it safe to delete?

Only if you're sure you don't need it. Can't be rebuilt: old session logs. They go to the Recycling Yard first.

This is your own data, not a cache: once it’s gone from the Trash, nothing brings it back.

How to remove it

  1. In Finder, choose Go > Go to Folder (Shift-Command-G), paste the path above and press Return.
  2. Leave anything opened or changed less than 30 days ago (for a folder, its newest file counts). DiskCity waits that long too.
  3. Look through what's there, and move only what you're sure you don't need to the Trash.
  4. Empty the Trash to get the space back. Until then, you can still put things back.

What DiskCity does with it

DiskCity never deletes it outright: if you approve, it waits 30 days in the Recycling Yard first. It only suggests it once it hasn't been used for 30 days.

Sources

Checked 2026-10-29.