# turno undo (/docs/reference/cli/undo)

List recent changes turno made to your files, and put any of them back.

```text title="turno undo --help"
Usage:
  turno undo --list [-n N] [--json]    recent changes, newest first
  turno undo <stamp|last> [--dry-run] [--force] [-v]
                                       put back every file that change touched;
                                       one line per folder, -v lists each change
  turno undo --prune [--older-than 30d] [--keep 10] [--dry-run] [--json]
                                       delete old backups

Every command that writes your files (ui install, profile, config, mcp sync,
mcp daemon, identity, uninstall) keeps a copy under
~/.local/state/turno/backups/<stamp>/ first. A file that changed again after
that command is left alone unless --force. An undo is itself recorded, so it can
be undone.

profile add and profile repair also record the links, launchers and folders
they create and the files they move to .aside-<time>/: undo removes those links
and launchers, moves your files back and removes the .aside-* folder. A profile
folder is removed only when it is empty again; one that holds a login stays.
turno uninstall is recorded the same way, so undo puts back what it removed.

Backups can hold secrets that were in those files, so they are private (folders
0700, files 0600) and pruned: each new backup deletes those older than 30 days,
keeping the newest 10. A backup that is still the only way back for a file it
changed (the file is unchanged since) is kept.

Examples:
  $ turno undo --list
  $ turno undo last --dry-run
  $ turno undo 20261117-101500
  $ turno undo --prune --older-than 30d
```