# Method: accounts.mfaEnrollment.withdraw

- [HTTP request](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/accounts.mfaEnrollment/withdraw#body.HTTP_TEMPLATE)
- [Request body](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/accounts.mfaEnrollment/withdraw#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/accounts.mfaEnrollment/withdraw#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/accounts.mfaEnrollment/withdraw#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/accounts.mfaEnrollment/withdraw#body.WithdrawMfaResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/accounts.mfaEnrollment/withdraw#body.aspect)
- [Try it!](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/accounts.mfaEnrollment/withdraw#try-it)

Revokes one second factor from the enrolled second factors for an account.

### HTTP request

`POST https://identitytoolkit.googleapis.com/v2/accounts/mfaEnrollment:withdraw`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "idToken": string, "mfaEnrollmentId": string, "tenantId": string } ``` |

| Fields ||
|---|---|
| `idToken` | `string` Required. User's ID token. |
| `mfaEnrollmentId` | `string` Required. MFA enrollment id from a current MFA enrollment. |
| `tenantId` | `string` The ID of the Identity Platform tenant that the user unenrolling MFA belongs to. If not set, the user belongs to the default Identity Platform project. |

### Response body

Withdraws MultiFactorAuth response.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "idToken": string, "refreshToken": string } ``` |

| Fields ||
|---|---|
| `idToken` | `string` ID token updated to reflect removal of the second factor. |
| `refreshToken` | `string` Refresh token updated to reflect removal of the second factor. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/identitytoolkit`
- `
  https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).