ZITADEL Docs
APIsCore ResourcesV2User

RemoveRecoveryCodes

Remove recovery codes from a user

Remove all recovery codes from the authenticated user. This will disable the recovery code second factor.

DELETE
/v2/users/{user_id}/recovery_codes

Path Parameters

user_id*string

Response Body

application/json

application/json

curl -X DELETE "https://loading/v2/users/string/recovery_codes"
{
  "details": {
    "sequence": 0,
    "changeDate": "1s",
    "resourceOwner": "string",
    "creationDate": "1s"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?