---
title: "Remove TOTP configuration for a user."
method: DELETE
path: "/api/users/{username}/totp"
tags: ["Users"]
---

# Remove TOTP configuration for a user.

`DELETE /api/users/{username}/totp`

## Path parameters

- `username` string, required

## Request body

- object
  - `totp` number — Valid TOTP code for the given user account.

## Response `200`

If TOTP was removed successfully.

## Other responses

- `403` — For any {username} in URL but the currently logged in user (or no user is logged in).
- `404` — If the user is not found or TOTP is not configured.
- `422` — If the TOTP code is invalid.
- `503` — If the user is using Passkey authentication, TOTP cannot be configured.

---

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