Why verification codes disappear on iPhone

You needed the code again and the text message was gone. Or you swiped the notification away before typing it. Here’s what happened, and where to look.

Updated · 4 min read

Your iPhone may delete them after use

Since iOS 17, the iPhone can clean up verification codes in Messages and Mail once AutoFill has inserted them. On recent iOS versions the switch is Delete After Use, in Settings → General → AutoFill & Passwords. The place can move between iOS versions: if you don’t see it, search Settings for “Delete After Use”.

Swiped away a code from an app?

Banks, login approvals, couriers and delivery apps often send a code only as a notification, not as a text message. Once it’s cleared, iOS keeps no copy. Try, in this order:

  1. Notification Center. It may be stacked under a newer notification from the same app.
  2. The app itself. Some show the code again in an inbox or on the order page.
  3. A new code. For a login, it’s usually the fastest way, and the old code has probably expired anyway.

Authenticator codes aren’t lost

If the code comes from an authenticator, such as Apple’s Passwords app or Google Authenticator, it isn’t sent to you at all: the app makes a new one every 30 seconds or so. Open the app to see the current one.

Keep the codes you’ll need later

Pickup PINs, parcel locker codes and booking references stay useful long after the banner is gone. With Bannerback, notifications from the apps you choose are saved as they arrive, and Links & codes lists the codes found in them, with a Copy button. A code is recognized when the same notification contains a word such as “code”, “OTP” or “PIN”; other numbers can still be found with search. More in how to find a code from an old notification.

And the other way round, for privacy: From Bannerback 1.1: messages with a one-time code can be deleted from Bannerback automatically after 1 or 24 hours (Settings → Keep history for → One-time codes).

As always: only codes that arrive after setup, from apps in your automation, and recognition can miss or misread a number, so check it before you use it.

FAQ

Why do my verification code texts disappear?

Most likely Delete After Use is on: iOS deletes a code’s message or email after AutoFill inserts it. Turn it off in Settings (on recent versions under General → AutoFill & Passwords).

Can I see a 2FA code I swiped away?

Not with iOS alone. Check the app that sent it, or ask for a new code. If Bannerback saved the notification, the code is in Links & codes.

More guides