---
title: "Clears any existing recovery codes for the user."
method: POST
path: "/v1/users/{userId}/recovery-codes/clear"
tags: ["Accounts"]
---

# Clears any existing recovery codes for the user.

`POST /v1/users/{userId}/recovery-codes/clear`

Clearing recovery codes voids any recovery codes previously generated for the user.
New recovery codes will have to be generated to pass two step verification via recovery code.

## Path parameters

- `userId` integer, required

## Request body

- RobloxTwoStepVerificationApiClearRecoveryCodesRequest — Request information needed to clear existing recovery codes.
  - `password` string — The user's password.

## Response `200`

OK

- RobloxWebWebAPIApiEmptyResponseModel

## Other responses

- `400` — 2: The user ID is invalid. 4: The password is invalid.
- `401` — 0: Authorization has been denied for this request.
- `403` — 0: Token Validation Failed
- `429` — 5: Too many requests.
- `503` — 7: Two step verification is currently under maintenance.

---

[API](https://skmtc.net/roblox/apis/roblox-api.md) · [All operations](https://skmtc.net/roblox/apis/roblox-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/roblox/roblox-api/versions/756260310407/schema)
