can I automatically delete one time passwords in messages

Didn't Apple have a feature on Messages where it would automatically delete 2FA OTP messages?

I can't seem to find it, and Google searches all point to Settings paths that don't exist on Sonoma.

iMac 24″

Posted on Aug 18, 2024 11:26 AM

Reply
4 replies

Aug 18, 2024 12:28 PM in response to bbeebe

bbeebe wrote:

Didn't Apple have a feature on Messages where it would automatically delete 2FA OTP messages?
I can't seem to find it, and Google searches all point to Settings paths that don't exist on Sonoma.

OTP - one time passcode or verification code messages. I don't know of a way to delete them automatically. They resemble other messages coming from 5-number sources and I don't think Messages can distinguish them. Also, different companies use different formats for their one time verification codes.

Aug 18, 2024 1:01 PM in response to bbeebe

I'm not entirely sure, but I think it happens automatically if you are on the page where you need to input the OTP and wait for the small pop-up dialogue to appear asking to "fill XXXXXXX from Messages" and click to fill. I also think it only happens when I am using Safari and not another browser.


I suspect that it only automatically deletes the OTP SMS in such a case because macOS "knows" the OTP has just been "consumed" and is no longer a valid message. Filling seem to work from mail too, although I can't recall if there is an autodelete on email OTP.


I cannot recall having ever set that deliberately, and I do know of cases - for example where the SMS was delayed and I switched to Messages to see if I had just missed it, only for it to come in - where the pop-up subsequently didn't appear and the SMS wasn't auto-deleted.


Seems like WebKit manages that in the background and is just smart enough to recognize a particular OTP workflow between Safari and Messages or Mail.


But to be fully transparent, most of my accounts either use authenticator generated TOTP or have moved to Passkeys, so I only see this behaviour on a literal handful of sites.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

can I automatically delete one time passwords in messages

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.