Undo Mistakes On Your iPhone or iPad
iOS has an undo function that works in a wide variety of apps and situations. But it doesn't have an on-screen button. Instead, shake your iPhone or iPad when you want to undo your last action.
Check out Undo Mistakes On Your iPhone or iPad at YouTube for closed captioning and more options.