List, resume, and delete specific sessions

sessions & context

// what it does

gemini --list-sessions prints every saved session for the project with its index, description, timestamp, and UUID. Resume any of them by index (gemini --resume 1) or by full UUID. gemini --delete-session removes one by index or ID, cleaning up its plans, logs, and tool outputs too.

// shell

$ gemini --list-sessions
$ gemini --resume 1
$ gemini --delete-session 2

// gotcha

Indices are positional and shift whenever the list changes, so a script that resumes "session 2" can grab the wrong one after a new session is saved — resume by UUID in automation. The interactive /resume browser is the same store; press x on a row to delete it there.

// resources