Skip to Content

iOS 17: How to Auto-Delete Verification Codes in Messages and Mail

by

Apple in iOS 17 introduced a new feature for Mail and Messages that can automatically delete one-time verification codes after you have used them. Here's how it works on iPhone and iPad.

ios 17 mail verification codes autofill
These days, many websites and services use one-time passcodes sent via SMS or over email for verification purposes, but these one-time codes can soon clog up your Mail inbox and Messages app.

Thankfully in ‌iOS 17‌, there's a new option to have those messages auto-delete after the code is autofilled and used to authenticate a login. Apple should ask you if you want to enable this when you use the autofill feature after upgrading to ‌iOS 17‌, but you can toggle it on manually by following these steps.

  1. Open Settings on your ‌iPhone‌ or ‌iPad‌.
  2. Scroll down and tap Passwords (you'll be prompted to use Face ID to authenticate the next screen).
  3. Tap Password Options.
  4. Under "Verification Codes," toggle on the switch next to Clean Up Automatically so that it is in the green ON position.

settings

That's all you need to do. Next time autofill uses a received verification code, the associated SMS message or email with be automatically deleted, helping you keep your inboxes clear of unnecessary cruft.

For more information on everything new in iOS 17, be sure to check out our ultimate guide.

Popular Stories

macbook air blue

What's Coming in the M5 MacBook Air

Thursday February 26, 2026 3:57 pm PST by
Along with the low-cost MacBook, Apple could introduce a refreshed version of the MacBook Air next week. Most of the focus will be on the new machine, but the MacBook Air is expected to get some useful internal updates. M5 Chip The next-generation MacBook Air will adopt the M5 chip, which Apple already introduced in the iPad Pro and MacBook Pro models that came out last year. Apple's M5...
Apple Announces Special Event in New York Feature 1

Apple Teases 'A Big Week Ahead' With Announcements Starting Monday

Thursday February 26, 2026 6:06 am PST by
Apple CEO Tim Cook today teased "a big week ahead," with announcements starting Monday. His post included an #AppleLaunch hashtag with a colorful Apple logo, along with a short video that ultimately shows an Apple logo on the lid of a Mac. Apple is reportedly planning a three-day stretch of product announcements from Monday, March 2 through Wednesday, March 4, with up to five new products...
ipad mini 7 1

Could Apple's OLED iPad Mini Finally Be a Kindle Killer?

Friday February 27, 2026 12:08 pm PST by
With a similar screen size and easy, one-handed grip, the iPad mini has always been the Apple device that overlaps most with dedicated e-readers. Now, amid rumors pointing to an OLED display for the next generation, could the iPad mini finally replace devices such as the Kindle and Kobo? The shift from LCD to OLED could make the iPad mini far more appealing as a reading device. OLED panels...