Skip to content

ordr undo

Reverses the most recent ordr clean by moving all files back to their original locations.

Terminal window
ordr undo [flags]

Every successful ordr clean is recorded in ~/.ordr/undo.json. ordr undo pops the most recent entry from this stack.


Flags

FlagShortDescription
--listShow what the last clean did, without undoing
--yes-ySkip confirmation prompt

Examples

Terminal window
# See what would be undone
ordr undo --list
# Undo with confirmation prompt
ordr undo
# Undo immediately without confirmation
ordr undo --yes

Output

Terminal window
ordr undo --list
Last clean — 3 move(s)
~/Desktop/documents/invoice.pdf → ~/Desktop/invoice.pdf
~/Desktop/images/photo.png → ~/Desktop/photo.png
~/Desktop/archives/backup.zip → ~/Desktop/backup.zip
Run 'ordr undo' to reverse these moves.