> For the complete documentation index, see [llms.txt](https://bump.sh/nethesis/doc/nethcti-middleware/llms.txt)

# Disable user 2FA (Super Admin only)

> DELETE /admin/2fa/{username}
> 
> Disable 2FA for the user (e.g. lost device): the OTP secret and the recovery
> codes are removed and every user token is revoked, so every client has to
> log in again. It succeeds also when 2FA is not enabled.



## Servers
- Local development server: http://localhost:8080 (Local development server)
- Production server: https://middleware.example.com/api (Production server)


## Authentication methods
- Super admin auth


## Parameters

### Path parameters

- **username** (string)
  Target user (case insensitive)




## Responses
### 204
2FA disabled

### 400
Invalid username


[Powered by Bump.sh](https://bump.sh)
