Skip to main content

sede: SEssion DEleter

logo

Delete archived coding assistant sessions from terminal, fast and safely.

CI License


Features

  • Interactive TUI flow for provider selection and session deletion
  • Supports Claude Code, GitHub Copilot, Antigravity, and OpenCode
  • Multi-select deletion with confirmation
  • Storage-aware list: title, project path, storage path, size, updated-at
  • Safe Claude cleanup: removes selected session file and prunes empty project directory
  • Non-interactive clean command for scripted, bulk deletion with a --dry-run preview

Installation

Recommended

uv tool install sede

Or

pipx install sede

Run

After installation, run:

sede

Bulk Cleanup

Delete every discovered session, across all providers, without the interactive TUI:

sede clean

Preview what would be deleted first, without touching anything:

sede clean --dry-run

Limit cleanup to one provider (--claude, --copilot, --antigravity/--agy, --opencode):

sede clean --copilot --dry-run
sede clean --claude --yes

Skip the confirmation prompt with --yes/-y. If some session files require elevated permissions to remove, re-run with sudo:

sudo sede clean --dry-run
sudo sede clean --yes

TUI Preview

Main screen:

               _      
  ___  ___  __| | ___ 
 / __|/ _ \/ _` |/ _ \
 \__ \  __/ (_| |  __/
 |___/\___|\__,_|\___|

Session Deleter
https://github.com/ilypopv/sede/
Deep clean archived coding assistant sessions from your device.

 Choose coding assistant
 ➤ 1. Claude Code        Delete archived Claude Code sessions
   2. GitHub Copilot     Delete archived Copilot sessions
   3. Antigravity        Delete archived Antigravity sessions
   4. OpenCode           Delete archived OpenCode sessions

↑↓ Navigate  |  Enter / → Select  |  Ctrl+C / Q Quit

Session selection screen:

 Available sessions: Claude Code
 1 session(s) loaded. Total size: 1.5 MB.

 Choose sessions to delete
 » ○ 1. Session title...
     Project:  /Users/you/project-path
     Storage:  ~/.claude/projects/-Users-you-project/
     Details:  1.5 MB  •  2026-07-03 09:44 UTC

↑↓ Navigate  |  ← Back  |  Space Select  |  A Toggle All  |  Enter Delete  |  Ctrl+C / Q Quit

When no sessions are found for a provider, the same screen layout is shown instead:

 Available sessions: Claude Code
 0 session(s) loaded. Total size: 0 B.

 No sessions found for Claude Code.

 Press any key to go back...

Safety Notes

  • Deletion is permanent.
  • Claude: deletes selected .jsonl session file, then removes parent project dir only if empty.
  • Copilot: deletes the selected session directory recursively.
  • Antigravity: deletes the selected conversation directory recursively.
  • OpenCode: deletes selected session rows from the shared opencode.db (part/message/session for v1, session_v2 plus related rows for v2, with PRAGMA foreign_keys=ON); v2 child sessions are removed too, while the DB file and other sessions are untouched.
  • Always review selected entries before confirming.

Session Sources

  • Claude: ~/.claude/projects/*/*.jsonl
  • Copilot: ~/.copilot/session-state/<session-id>/
  • Antigravity: ~/.gemini/antigravity-cli/brain/<session-id>/ and ~/.gemini/antigravity/brain/<session-id>/
  • OpenCode: ~/.local/share/opencode/opencode.db (fallback ~/Library/Application Support/opencode/opencode.db, XDG_DATA_HOME honoured; same XDG path for brew/non-brew) — reads both v1 (session/message/part) and v2 (session_v2/session_message/session_part) tables; only chat sessions are surfaced, caches (~/.cache/opencode, ~/.local/state/opencode, snapshot/log) are excluded

Metadata

Release files for sede 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sede 0.2.3
File Size Uploaded Provenance Actions
sede-0.2.3.tar.gz 33.5 kB With provenance Details for sede-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sede 0.2.3
File Interpreter ABI Platform Actions
sede-0.2.3-py3-none-any.whl Python 3 none any Details for sede-0.2.3-py3-none-any.whl

Total release size: 55.5 kB

Release files / sede-0.2.3.tar.gz

Download URL sede-0.2.3.tar.gz
Size 33.5 kB
Tags Source
SHA-256 checksum
How to use checksums
542593379dbb6eb8ca77a9fa443ca1449924f3a75634a19ebf12d8dc8fe0e48d
BLAKE2b-256 checksum
How to use checksums
550cb5e14290075e3151ddcb60eb573e44dfc7801a369a9f6b4757d5580a8186
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / sede-0.2.3-py3-none-any.whl

Download URL sede-0.2.3-py3-none-any.whl
Size 22.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47c8b1c51ca56d871bc9c7ce1e2dcf7840e36b290152b91a23a861c9708aad0f
BLAKE2b-256 checksum
How to use checksums
def3257a30d82254355e57d0d339760fa1415941570d3333e8e8e97e6c68a603
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for sede 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sede-0.2.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page