Trash & history
Trash, undo and history
Undo
Every cleanup and uninstall is written to a journal first. To put everything back, press Undo in the banner or in Cleaning history. If an item can't be put back safely (for example, something new now sits at its old location), KOSH says so and leaves both alone.
The Trash view
It shows what's in your Trash on every disk, with the items KOSH moved marked. Emptying the Trash is permanent, so KOSH leaves that to Finder.
macOS protects the Trash. To see inside it from KOSH, allow KOSH in System Settings → Privacy & Security → Full Disk Access. This is optional: everything else works without it.
History records
A record is kept while it can still undo something. Once its items are emptied from the Trash, the record is "finished" and is removed after the time you choose in Settings → History (90 days by default).