Pages

Undo or redo changes in Pages on Mac
You can undo recent changes you make to a document, then redo them if you change your mind.
Go to the Pages app
on your Mac.
Open a document, make any edits, then do one of the following, as necessary:
Undo the last action: Choose Edit > Undo (from the Edit menu at the top of your screen), or press Command-Z on your keyboard.
Redo the last action you undid: Choose Edit > Redo, or press Command-Shift-Z.
If you want to delete all the changes you made since you opened a document, you can restore the document to its state when you opened it.