iOS 17: How to Auto-Delete Verification Codes in Messages and Mail - MacRumors
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

ios 27 messages

Apple Intelligence Introduces Contextual Call and Messages Features

Monday June 8, 2026 12:49 pm PDT by
Apple today announced a set of new communication-focused Apple Intelligence features, including contextual suggestions in Messages and a Call Context tool that surfaces relevant information from Mail when a user phones a business. The new Messages features offer one-tap suggestions based on the content of a conversation. If a contact asks for photos, Messages can surface a suggestion to...
ios 27 messages

14 Ways Apple Is Improving Messages in iOS 27

Wednesday June 10, 2026 4:01 am PDT by
Apple at this year's WWDC emphasized that its approach to iOS 27 development was to add fewer newer features and instead make existing features better. Examples of that approach can be seen across the operating system, but it is arguably most obvious in the changes coming to Messages. That's not to say there's nothing original coming to Messages in iOS 27. For instance, one new Apple...
iCloud iPhone 17 Pro

iPhone Users Who Pay for iCloud Storage Get Two New Perks on iOS 27

Tuesday June 9, 2026 11:29 am PDT by
If you pay for extra iCloud storage on your iPhone, beyond the 5GB included for free, you might receive two more perks on iOS 27 at no additional cost. First, Apple said there will be daily usage limits for some of the new and enhanced Apple Intelligence features on iOS 27, including image generation. However, the company noted that "increased access" is available with "most" iCloud+ storage ...