Skip to content
Edith

Docs

Command reference

ed shelf purge

Previews and removes shelf items older than an expiry window.

Output
ed shelf purge [forever|oneHour|oneDay|oneWeek|oneMonth] [--yes] [--json]

Without a window, the command reads shelfKeepDuration and falls back to forever. Without --yes, it prints the exact file paths it would remove and does not change the files or index. Add --yes to apply the same expiry executor used by the running Shelf.

Terminal
ed shelf purge oneWeeked shelf purge oneWeek --yesed shelf purge oneDay --json

JSON preview output includes action, targets, keep, removed, applied and changed. Applied output also includes remaining. An unknown window exits 2, and a filesystem or index failure exits 1.

Where to go next