Skip to main content
Unenrolling an MFA method requires MFA verification.
Allow users to remove previously enrolled MFA methods from their account.
Privy allows users to delete MFA methods via the unenrollWithSms, unenrollWithTotp, and unenrollWithPasskey methods returned from the useMfaEnrollment hook:

Unenrolling SMS

To remove SMS as an MFA method:

Unenrolling TOTP

To remove TOTP as an MFA method:

Unenrolling passkeys

To remove passkeys as an MFA method:

Complete example

Example unenrolling SMS/TOTP/passkey