iPhone keyboard guides

How to Undo Typing and Accidental Text Deletion on iPhone

Deleted part of a message? Try undo before you make another edit.

In a supported iPhone text editor, swipe left with three fingers and confirm Undo if prompted. Swipe right to redo. You can also use an app’s undo button or Shake to Undo when enabled. This restores recent edits only when the editor still has the relevant history.

What to do immediately after deleting text

Keep the affected note, message draft or text field open. Avoid typing more or closing the app until you have tried its undo controls.

If the app has an undo button, start there. If you deleted an entire note or message rather than editing its contents, look for that app’s recovery tools instead.

Undo typing without shaking your iPhone

  1. Keep the editable text field active.
  2. Swipe left using three fingers, then tap Undo if the control appears.
  3. Check whether the missing text has returned.
  4. To reverse an undo, try swiping right with three fingers and use Redo if prompted.

A three-finger tap can also bring up editing controls in supported apps. Use the visible undo or redo command if it appears.

How to enable Shake to Undo

  1. Open Settings → Accessibility → Touch.
  2. Turn on Shake to Undo.
  3. Return to the text you were editing and gently shake the iPhone.
  4. Confirm Undo if the prompt appears.

If you trigger it accidentally, turn it off in the same settings screen and use editing gestures instead.

Can you recover accidentally deleted text?

Undo may restore a deleted sentence or reverse a paste if the editing session still holds that action. It cannot guarantee recovery after closing a document, restarting an app or deleting the entire item.

  • Deleted notes or files: look for the relevant Recently Deleted or recovery folder.
  • Sent messages: check the messaging app’s edit or unsend options.
  • Overwritten clipboard: undo does not provide a system-wide history of copied items.

Avoid losing important text again

For long drafts, keep a separate copy before making large changes. For phrases you reuse, save them intentionally rather than relying on the clipboard or undo history.

See how to select and edit text safely and our explanation of what iPhone clipboard history can and cannot recover.

Sources and further reading

Menu wording and behavior can vary by iOS version, language, and app. This guide does not claim independent device testing.