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 Neo 2 on Yellow Feature

Apple Reportedly Plans to Release These Products in February or March

Sunday November 22, 2026 7:32 am PST by
Apple plans to unveil an iPhone 18e, iPhone 18, updated entry-level iPad, and new MacBook Neo and MacBook Air models around February or March next year, according to the latest word from Bloomberg's Mark Gurman. In his Power On newsletter today, Gurman said Apple has some additional products planned for the first half of 2027, including the iPhone Air 2 and new iPad Air and iPad Pro models,...
streaming black friday 2025

Best Black Friday Streaming Deals on Apple TV, Peacock, HBO Max, and More

Monday November 23, 2026 10:58 am PST by
We've been focusing on deals on physical products over the past few weeks, but Black Friday is also a great time of year to purchase a streaming membership. Some of the biggest services have great discounts for new and select returning members this week, including Apple TV, HBO Max, Paramount+, Peacock, and more. Note: MacRumors is an affiliate partner with some of these vendors. When you...
wwdc sans text feature

Surprise! Apple is Launching Two More Products Soon

Monday November 23, 2026 1:41 pm PST by
With the holiday shopping season getting underway, it seemed like Apple was finished releasing new products this year, but apparently not. Bloomberg's Mark Gurman today reported that Apple plans to release (PRODUCT)RED versions of the existing AirPods Max 2 and HomePod mini 2 on or around Tuesday, December 1, which is World AIDS Day. The new color will likely be the only change. Gurman...
Latest Stories
AirPods Pro 3 for $149 is One of The Best Black Friday Deals This Year
AirPods Pro 3 for $149 is One of The Best Black Friday Deals This Year
30 minutes ago
How To Get an iPhone Duo or iPhone 18 Pro at No Cost Through T-Mobile for Black Friday
How To Get an iPhone Duo or iPhone 18 Pro at No Cost Through T-Mobile for Black Friday
36 minutes ago
Apple Has an iPhone Notifications Problem
Apple Has an iPhone Notifications Problem
42 minutes ago
Amazon Sweetens Black Friday Deals on PROLED MacBook Pro
Amazon Sweetens Black Friday Deals on PROLED MacBook Pro
2 hours ago
Apple Has iPads Running macOS Internally, Says Gurman
Apple Has iPads Running macOS Internally, Says Gurman
4 hours ago
Apple Is Far From Done With 2026: Here's What's Still Coming
Apple Is Far From Done With 2026: Here's What's Still Coming
4 hours ago
Threads App for iPad Now Available
Threads App for iPad Now Available
6 hours ago
Claude Now Lets You Install Artifacts as Desktop Apps
Claude Now Lets You Install Artifacts as Desktop Apps
7 hours ago
Tidal Bans AI Music, While Apple Music Sticks to Labels
Tidal Bans AI Music, While Apple Music Sticks to Labels
17 hours ago
Add Holiday Lights and Snow to Your Mac With Festivitas
Add Holiday Lights and Snow to Your Mac With Festivitas
18 hours ago
Meta's Muse AI Agent Comes to Instagram DMs
Meta's Muse AI Agent Comes to Instagram DMs
19 hours ago
Google Says Apple's iOS Browser Rules Offer 'Choice on Paper, Not in Practice'
Google Says Apple's iOS Browser Rules Offer 'Choice on Paper, Not in Practice'
20 hours ago
Walmart App Rolls Back Apple Pay Support After Just Weeks
Walmart App Rolls Back Apple Pay Support After Just Weeks
21 hours ago
Black Friday Discount Hits 512GB MacBook Neo at $699 ($100 Off)
Black Friday Discount Hits 512GB MacBook Neo at $699 ($100 Off)
22 hours ago
Disney+ Black Friday Deal is Here: Bundle With Hulu for Just $4.99/Month for a Year
Disney+ Black Friday Deal is Here: Bundle With Hulu for Just $4.99/Month for a Year
23 hours ago
Signal Now Blocks AI Screen Access to Protect Chats
Signal Now Blocks AI Screen Access to Protect Chats
1 day ago
Things 3.25 for Mac Gains Touch Gestures
Things 3.25 for Mac Gains Touch Gestures
1 day ago
AirTag in (PRODUCT)RED?
AirTag in (PRODUCT)RED?
1 day ago
M6 iMacs Get First Major Discounts With Up to $111 Off at Amazon
M6 iMacs Get First Major Discounts With Up to $111 Off at Amazon
1 day ago
Apple to Celebrate 20 Years of (RED) With Special Event in New York
Apple to Celebrate 20 Years of (RED) With Special Event in New York
1 day ago
Hidden Coupon Deal Knocks M6 MacBook Pro to $1,779 on Amazon
Hidden Coupon Deal Knocks M6 MacBook Pro to $1,779 on Amazon
1 day ago
Apple to Release Four (RED) Products by Next Week
Apple to Release Four (RED) Products by Next Week
1 day ago
iPhone Air 2 and iPhone 18 Rumored to Feature Thicker Cameras
iPhone Air 2 and iPhone 18 Rumored to Feature Thicker Cameras
1 day ago
EU in Talks With Apple Over Barriers to Rival iPhone Browsers
EU in Talks With Apple Over Barriers to Rival iPhone Browsers
1 day ago
iPhone 18e to Get Redesigned, iPad Pro-Style Camera
iPhone 18e to Get Redesigned, iPad Pro-Style Camera
1 day ago
iPhone Duo: 20 Tips to Get the Most Out of Apple's Foldable
iPhone Duo: 20 Tips to Get the Most Out of Apple's Foldable
1 day ago
Meta's Muse Personal AI Agent Launches in the UK
Meta's Muse Personal AI Agent Launches in the UK
1 day ago
OpenAI Brings GPT-6.2 Sol to ChatGPT's Chat Tab
OpenAI Brings GPT-6.2 Sol to ChatGPT's Chat Tab
2 days ago
Google Search Gets Wallet Access, With Drive Coming Soon
Google Search Gets Wallet Access, With Drive Coming Soon
2 days ago
Apple Store With All-New Design Opening in UK Next Month
Apple Store With All-New Design Opening in UK Next Month
2 days ago