X

iOS 17 Can Auto-Delete Those Pesky Two-Factor Authentication Codes. Here's How

A constant barrage of two-factor authentication codes can be super annoying, but iOS 17 allows iPhone users to get rid of them in the blink of an eye.

Mary-Elisabeth Combs Associate Writer
Mary-Elisabeth is an associate writer on CNET's How-To team. She's a recent graduate of UNC-Chapel Hill's English Department, and resides in Charlotte, North Carolina. On the How-To team, she covers a little bit of everything. When she's not writing, she's catching up on Formula 1 or reading.
Mary-Elisabeth Combs
2 min read
Text message verification codes on iPhone

iOS 17 has a new feature that allows you to automatically delete used two-factor authentication codes. 

Nelson Aguilar/CNET

iOS 17 came out earlier this fall, and it brought all sorts of new features to compatible iPhones. This includes the ability to create your own contact poster, the brand-new StandBy mode, the Journal app and more. Among these new features is the smaller, but very powerful, ability to have your phone automatically delete all of the two-factor authentication codes that are sent to your iMessage or Mail inboxes. 

Two-factor authentication is a simple, yet effective way to protect your information. By having a service send a code to your device when logging in to your account, you can make it harder for your information to get stolen. However, it gets a little messy when your messages app is constantly clogged up with all the codes that get sent directly to your messages or email inboxes. 

With this new feature, all you'll need to do is toggle one setting, and then the two-factor authentication codes will be automatically deleted from your account, freeing up your inboxes.

Here's our review of the new iPhone 15 Pro and Pro Max, and here's a rundown of everything announced at Apple's event in September.

Go Inside the Apple iPhone 15 and iPhone 15 Pro: See How the New iPhones Look and Work

See all photos

How can I automatically delete two-factor authentication codes?

On iOS 17, if you want to turn on the option to automatically delete your two-factor authentication codes, you'll first need to go into your Settings on your phone. After you've opened your settings, navigate to the Passwords tab. Then tap Passwords. (You may need to unlock your phone.) Now tap Password Options scroll down to the Verification Codes section and enable Clean Up Automatically

After you turn that one, you should be set. And don't worry: This won't automatically delete any unused authentication codes -- it only deletes codes that you've already used. This also works in the Mail app, so all of your inboxes will be squeaky clean. 

For more, here are some hidden iOS 17 features you need to know and the most impressive features of iOS 17