wm_rollback
Restore files from a previous cleanup run to their original locations after verifying SHA-256 integrity. Performs a dry-run by default; set execute=true to undo a cleanup using its run id.
Instructions
Restore the items of a previous wm_clean run from the recycle area back to their original locations. Every item is verified against its recorded SHA-256 hashes first; items that fail the integrity check, are missing, or would overwrite an existing file are skipped with a reason. Use this to undo a cleanup you just executed, passing the run id printed by wm_clean. Dry-run by default; set execute=true to actually restore. Fails with a clear message if the run id is unknown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The cleanup run id to restore, as printed by wm_clean, e.g. 'clean-20260831-153000-123456'. | |
| execute | No | When false (default) this is a dry-run preview and nothing changes; set true to actually restore the files. |