# Codex sessions

Source: https://diskcity.app/folders/agents-codex-sessions

**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.

## 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.

## Where it is

- `~/.codex/sessions/????/??/??`

## 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

- https://github.com/openai/codex

Checked 2026-10-29.
