delete:
  tags:
    - Users
  summary: >-
    Delete time based one time private key for the provided user. Requires a
    token received from `/verify-2fa` endpoint.
  operationId: UserTotpSecreteDelete
  description: >-
    Deletes private key for an Authenticator app. This API requires the current
    user to be member of group `Administrators`. Returns 403 otherwise. The
    `Administrators` group name is hardcoded and cannot be changed at the moment
  parameters:
    - name: user_id
      in: path
      description: unique user ID
      required: true
      schema:
        type: string
  responses:
    '204':
      description: Successful Operation
      content: {}
    '400':
      description: TotP is disabled
      content:
        application/json:
          schema:
            $ref: ../components/schemas/ErrorPayload.yaml
    '403':
      description: >-
        current user should belong to Administrators group to access this
        resource
      content:
        application/json:
          schema:
            $ref: ../components/schemas/ErrorPayload.yaml
    '500':
      description: Invalid Operation
      content:
        application/json:
          schema:
            $ref: ../components/schemas/ErrorPayload.yaml
