pcr gc
Reclaim space and prune drafts
pcr gc # delete pushed records older than 30 days pcr gc --older-than 7d # delete pushed records older than 7 days pcr gc --all-pushed # delete every pushed record locally pcr gc --unpushed # discard every unpushed bundle pcr gc --orphaned # delete bundles whose HEAD SHA no longer exists pcr gc --drafts # drop every unbundled draft pcr gc --drafts-older-than 7d # drop unbundled drafts older than 7 days
Reclaim space in ~/.pcr-dev/drafts.db or clean up the draft pool. Pushed bundles can always be restored with pcr pull; unbundled drafts are gone for good (the original session in your editor will re-capture the prompt on the next watcher pass if it's still there).
Common cleanup recipes
| Want to… | Run |
|---|---|
Trim the pcr show list back to recent work | pcr gc --drafts-older-than 14d |
| Throw away abandoned experiments before bundling | pcr gc --drafts |
| Cleanup after re-pushing from another machine | pcr gc --orphaned |
| Slim the local DB after a year of use | pcr gc --older-than 90d |