FAQ: How to undo/redo actions on the scene
You can use the undo/redo buttons to reverse a mistake and the redo function restores any actions that were previously undone using an undo.

The Action History window can also help retrace your steps:

Related article: Action History - Tracking your activities.