pub fn clear_worktree_state(root: &Path) -> Result<()>
Removes a worktree’s state: its file digests, the outputs it records holding, its warm directories and any restores or sandboxes left behind.