# Disable Multi-Factor Authentication for a User

Learn how to remove MFA methods from a user with the account pages, the Admin UI, the Two-Factor APIs, or the User API.

> For the index of this section of the site, see [llms.txt](https://fusionauth.io/docs/llms.txt)

A user may need to remove an MFA method after changing an email address or phone number, or to stop using MFA. When a user has no methods left, FusionAuth stops asking the user for a second factor, unless the login policy is `Required`.

Remove MFA methods from a user in one of the following ways:

*   The self-service account pages let users remove their own methods. The account pages require the Starter plan or higher. For more information, see [Enable or Disable MFA](https://fusionauth.io/docs/users/account-management.md#enable-or-disable-mfa) in the account pages guide.
*   The Admin UI removes a method from any user, depending on your roles.
*   The Two-Factor APIs let you build your own pages, where the user proves access to the method with a code.
*   The User API removes methods directly, with no code.

## Remove a Method in the Admin UI

1.  Navigate to Users and open the user.
    
2.  Click the Multi-Factor tab.
    
3.  Click Disable in the row of the method.
    
    ![The Multi-Factor tab of a user in the Admin UI, with the Disable button of the authenticator method outlined.](https://fusionauth.io/img/docs/screenshots/authenticate-mfa-admin-disable-method.png)
    
4.  Confirm the removal. When the Admin UI asks for a code, enter a code from the method.
    

Your roles decide whether the Admin UI asks for a code:

*   With the `admin` role, you remove a method from another user without a code.
*   With the `mfa_deleter` role, you remove a method from another user without a code when the user meets extra safeguards. The user can't be registered to the FusionAuth Application. The user also needs a verified email address or phone number, and the Tenant needs a template to notify the user of the removal.
*   With the `user_manager`, `user_support_manager`, or `user_support_viewer` role, you remove only your own methods, with a code.

After a removal by an administrator, FusionAuth tries to notify the user with the Tenant's templates. For the full `mfa_deleter` safeguards, see [Remove an MFA Method With the mfadeleter Role](https://fusionauth.io/docs/users/user-support-guide.md#remove-an-mfa-method-with-the-mfa_deleter-role).

## Build Your Own Pages

The Two-Factor APIs remove a method only after the user enters a valid code from the method, or a recovery code.

1.  Show the user the methods in **`user.twoFactor.methods`**, from the [User API](https://fusionauth.io/docs/apis/users.md), and ask the user to choose one.
    
2.  When the user chooses an email or SMS method, send a code with the [Send a Multi-Factor Code When Disabling MFA API](https://fusionauth.io/docs/apis/two-factor/send-a-multi-factor-code-when-disabling-mfa.md):
    
    Send a code to remove a method
    
    ```shell
    API_KEY=...
    REQUEST_PAYLOAD='{...}'
    
    curl -XPOST -H 'Content-type: application/json' -H "Authorization: $API_KEY" 'https://local.fusionauth.io/api/two-factor/send' -d $REQUEST_PAYLOAD
    ```
    
    Send a code to remove a method request
    
    ```json
    {
      "messageType": "Voice",
      "methodId": "RLRT",
      "userId": "c075e472-a732-47d6-865a-d385a5fcb525"
    }
    ```
    
    For an authenticator method, skip this step. The user reads the code from the app.
    
3.  Build a page that collects the code. Accept a recovery code in the same field.
    
4.  Call the [Disable Multi-Factor API](https://fusionauth.io/docs/apis/two-factor/disable-multi-factor.md) with the **`code`** and the **`methodId`**:
    
    Remove a method
    
    ```shell
    API_KEY=...
    USER_ID=...
    CODE=...
    METHOD_ID=...
    
    curl -XDELETE -H "Authorization: $API_KEY" 'https://local.fusionauth.io/api/user/two-factor/'$USER_ID'?code='$CODE'&methodId='$METHOD_ID
    ```
    

With a code from the method, FusionAuth removes only that method. With a recovery code, FusionAuth removes every method and every remaining recovery code. The request needs a **`methodId`** even with a recovery code, and any of the user's method Ids works. When the user adds a method again, FusionAuth generates new recovery codes.

## Remove Every Method With the User API

The User API removes methods without a code. Retrieve the user, empty **`twoFactor.methods`**, and send the user back with a `PUT` request:

Remove every MFA method from a user

```shell
API_KEY=...
USER_ID=...

user=$(curl -s -H "Authorization: $API_KEY" 'https://local.fusionauth.io/api/user/'$USER_ID)

# empty the methods array
user_without_mfa=$(echo "$user" | jq '.user.twoFactor.methods = []')

curl -XPUT -H 'Content-type: application/json' -H "Authorization: $API_KEY" 'https://local.fusionauth.io/api/user/'$USER_ID -d "$user_without_mfa"
```

A `PATCH` request with an empty **`twoFactor.methods`** array doesn't remove methods, because `PATCH` adds array items instead of replacing the array. For more information, see [The PATCH HTTP Method](https://fusionauth.io/docs/apis.md#the-patch-http-method).

Related

[Authentication Enable Multi-Factor Authentication for a User Learn how to add MFA methods to a user with the account pages, the Admin UI, the Two-Factor APIs, or the User API. mfamulti-factor authenticationtwo-factor](https://fusionauth.io/docs/authentication/multi-factor-authentication/enable.md)

[Authentication Multi-Factor Authentication (MFA) Learn about multi-factor authentication (MFA) in FusionAuth, including the supported methods, recovery codes, and trust tokens. mfatwo-factormulti-factor authentication](https://fusionauth.io/docs/authentication/multi-factor-authentication.md)

[APIs Disable Multi-Factor API API documentation for the FusionAuth Disable Multi-Factor API. multi-factor authenticationmfadisable mfa](https://fusionauth.io/docs/apis/two-factor/disable-multi-factor.md)

[APIs Generate Recovery Codes API API documentation for the FusionAuth Generate Recovery Codes API. multi-factor authenticationmfarecovery codes](https://fusionauth.io/docs/apis/two-factor/generate-recovery-codes.md)
---

## Other pages in Multi Factor Authentication

> For the full index of this section, see [Authentication](https://fusionauth.io/docs/llms-authentication.txt).

- [Configure Multi-Factor Authentication](https://fusionauth.io/docs/authentication/multi-factor-authentication/configure.md): Learn how to turn on MFA methods for a Tenant and set when FusionAuth asks users for a second factor.
- [Contextual Multi-Factor Authentication](https://fusionauth.io/docs/authentication/multi-factor-authentication/contextual.md): Learn how FusionAuth decides when to ask for MFA at login, including Tenant and Application policies, device trust, Intelligent MFA, and custom MFA logic.
- [Enable Multi-Factor Authentication for a User](https://fusionauth.io/docs/authentication/multi-factor-authentication/enable.md): Learn how to add MFA methods to a user with the account pages, the Admin UI, the Two-Factor APIs, or the User API.
- [Multi-Factor Authentication (MFA)](https://fusionauth.io/docs/authentication/multi-factor-authentication.md): Learn about multi-factor authentication (MFA) in FusionAuth, including the supported methods, recovery codes, and trust tokens.
- [Multi-Factor Authentication at Login](https://fusionauth.io/docs/authentication/multi-factor-authentication/login.md): Learn how users complete an MFA challenge on the hosted login pages or on your own pages with the Login API, including recovery codes.
- [Add Step-Up Authentication With the Two-Factor APIs](https://fusionauth.io/docs/authentication/multi-factor-authentication/step-up-api.md): Learn how to ask a logged in user for another factor before a sensitive action, using the FusionAuth Two-Factor APIs.
- [Step-Up Authentication](https://fusionauth.io/docs/authentication/multi-factor-authentication/step-up.md): Learn about step-up authentication in FusionAuth, including how to choose an approach and how long a step-up stays valid.
