Why iPhone Deletes Verification Codes, and How to Stop It
By Fwrd ·
Your iPhone deletes a verification code on purpose when Delete After Use is on: once you fill the code in with AutoFill, the text is removed from Messages. To keep your codes, open Settings, tap General, tap Autofill & Passwords, and turn off Delete After Use under Verification Codes.
What you need: the iPhone the codes arrive on, on iOS 26 or iOS 27 (iOS 18 works the same way), and about a minute.
What does the iPhone setting do?
It cleans up after you. Apple’s page on filling in verification codes says you can have codes deleted automatically after you enter them with AutoFill, or keep them. The setting arrived in iOS 17, where Apple called it Clean Up Automatically.
Two limits follow from Apple’s wording:
- Only codes you used. A code you typed by hand, or never used, isn’t what the setting is described as removing.
- Only one-time codes. Apple’s page doesn’t say the setting touches any other text.
How to turn off auto-delete for verification codes
On iOS 18, 26 and 27, Apple gives the same path. It takes four taps.
- Open Settings.
- Tap General, then Autofill & Passwords.
- Under Verification Codes, turn Delete After Use off.
- That’s it. Codes you fill in from now on stay in Messages. Ones already deleted don’t come back from this switch.
Turn it back on any time to clear codes away again.
Where was the switch before iOS 18?
Apple’s pages name it differently by version, so if your iPhone shows other words, you may be on an older one.
| iOS | Where Apple puts it | What it’s called |
|---|---|---|
| iOS 27, 26 and 18 | Settings → General → Autofill & Passwords → Verification Codes | Delete After Use |
| iOS 17 | Settings → Passwords → Password Options | Clean Up Automatically |
I read Apple’s pages for each version on November 18, 2026. Screens can differ slightly from the pages, so if yours looks different, Apple’s page for your version is the one to trust.
How do I get back a code that disappeared?
Start with Messages, then check why it left.
- Open Messages. In the conversation list, tap the button at the top, then tap Recently Deleted.
- Look for the code’s conversation, select it, then tap Recover and Recover Messages.
- Ask for a new code if it isn’t there. Apple says deleted messages can be restored for up to 30 days, and it doesn’t say whether Delete After Use puts codes there, so a fresh code is the sure way.
- Check the other causes if you never filled the code in. A code that never showed up wasn’t deleted by this setting; iPhone not receiving verification codes lists eight places to look.
Should I turn it off?
That’s your call, and neither setting is wrong. Leave it on if you’d rather not have old codes sitting in Messages for anyone who opens your phone to read. Turn it off if you want a record of the codes you’ve used, for example to see when a bank sent one.
Where does Fwrd fit?
Fwrd forwards a code the moment the text arrives, which is before you fill it in. The iPhone’s cleanup only happens after you use AutoFill, so it can’t take back a copy that already went out.
- Telegram, Slack and Discord: Fwrd sends the code straight from your iPhone, and the message stays in that chat.
- Email, another phone and WhatsApp: your shortcut’s own Send Email, Send Message or WhatsApp action sends it, and it stays in that inbox or chat.
- No account: Fwrd has no sign-in and no server of its own in the middle.
- Only the codes: a keyword like code keeps the forwarding to the texts you want.
I built Fwrd to hand a text on as it arrives, so it doesn’t depend on whether the iPhone keeps it. The verification code page walks through the setup.
What this can’t do
- Bring back a code that’s already gone. Fwrd only forwards new texts, so a code deleted before you set it up has no copy.
- Change the iPhone’s setting. Fwrd doesn’t switch Delete After Use on or off. That stays in Settings.
- Replace the service’s own resend. If a code expired, ask the service for a new one.
Questions people ask
Why do my verification codes disappear on my iPhone?
Delete After Use is probably on. After you fill a code in with AutoFill, the iPhone removes the text from Messages. If you never used AutoFill, the code may be filtered or silenced instead.
How do I turn off auto delete for verification codes on iPhone?
Go to Settings, then General, then Autofill & Passwords, and turn off Delete After Use under Verification Codes. On iOS 17 the same switch was called Clean Up Automatically, under Settings, Passwords, Password Options.
Can I get a deleted verification code back?
Maybe. Open Messages, tap the button at the top of the conversation list, then tap Recently Deleted. Apple says messages stay there for up to 30 days, but it doesn’t say whether codes cleaned up by this setting do. Asking the service for a new code is the safe route.
Does a code Fwrd forwarded disappear too?
No. Fwrd forwards the text when it arrives, and the copy in Telegram, Slack, Discord or an inbox is separate from the iPhone’s Messages. Turning Delete After Use on or off only changes what Messages keeps.
Keep a copy of every code
Fwrd forwards the code texts you choose the moment they arrive, so a copy sits in your Telegram, Slack or Discord chat even after the iPhone cleans up. No account.
Free up to a monthly limit. Pro removes the limits on forwards and filters and adds a Never Forward list, with a free trial on the yearly plan for eligible customers.
iPhone · iOS 26 or later