Cleanup
Cleanup removes sandboxes that are no longer needed.
Shell
wp rudel cleanup --dry-run
Use --dry-run first to see what would be removed.
Shell
wp rudel cleanup --force
Expired sandboxes
Sandboxes with an expires_at timestamp in the past are cleanup candidates.
Shell
wp rudel cleanup --expired --dry-run
Merged sandboxes
When Git metadata indicates a sandbox branch has already been merged, Rudel can include it in cleanup.
Shell
wp rudel cleanup --merged --dry-run
Protected sandboxes
Protected sandboxes are skipped unless the operator passes --force.
Cleanup drops cloned tables, removes managed files, cleans worktree records, and deletes the Rudel environment record.