---
title: "Delete Code Generator"
method: DELETE
path: "/v1/2fa/{id}"
tags: ["Two Factor Authentication"]
---

# Delete Code Generator

`DELETE /v1/2fa/{id}`

This endpoint allows you to delete an existing Code Generator. You need to provide the unique identifier (id) of the Code Generator you want to delete.

## Path parameters

- `id` integer, required

## Response `200`

Succeed, 2FA Deleted

- TwoFactorResponse
  - `meta` MetadataDTO
    - `timestamp` integer, required — Transaction's date in timestamp
    - `transactionId` string, required — Id for the current transaction (Endpoint's call)
    - `explain` string — Explain string in case of failure
  - `data` TwoFactorDTO — two factor configuration information
    - `id` integer, required — two factor configuration id
    - `codeLength` integer, required — character length to generate codes
    - `expirationMinutes` integer, required — minutes to expire a code
    - `channels` ChannelDTO[], required — two factor authentication pair channel-from
      - `subject` string — subject for email channel
      - `shortcode` string — shortcode for SMS channel
      - `from` string — from for email channel
      - `text` string — two factor authentication message
      - `placeholder` string — whatsapp template placeholder
      - `address` string — Sender mobilenumber for Whatsapp channel
      - `templateName` string — Whatsapp message template name
      - `templateId` string — Whatsapp message template id
      - `templateLanguage` string — Whatsapp message template language
      - `type` 'SMS' | 'EMAIL' | 'WHATSAPP' | 'SMS' | 'EMAIL' | 'WHATSAPP' — two factor authentication channel

## Other responses

- `401` — User not allowed
- `403` — Forbidden Access
- `404` — two factor configuration not found
- `500` — Internal Server Error

---

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