> ## Documentation Index
> Fetch the complete documentation index at: https://help.withallo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Supprimer un tag

> Soft-deletes a tag by its key. Tags synced from a CRM integration cannot be deleted via the API.

<Note>
  **Scope requis :** `TAGS_WRITE`
</Note>

## Comportement

Supprime un tag par sa **cle** (l'`id` retourne par `GET /v2/api/tags`). Le tag est supprime de maniere logique (soft delete) : il n'apparait plus dans la liste et ne peut plus etre applique aux appels, tandis que l'historique de tagging des appels est conserve.

* Supprimer un tag qui n'existe pas retourne une erreur `404` avec le code `TAG_NOT_FOUND`.
* Les tags synchronises depuis une integration CRM ne peuvent pas etre supprimes via l'API et retournent une erreur `409` avec le code `CRM_SYNCED_TAG_READONLY`. Gerez-les depuis le CRM connecte.

## Idempotence

Cet endpoint prend en charge l'en-tete `Idempotency-Key`. Si une requete reussit et que vous la renvoyez avec la meme cle, la reponse stockee est retournee sans re-executer l'operation. Voir [Idempotence](/fr/v2/api-reference/guides/error-handling#idempotency).


## OpenAPI

````yaml DELETE /v2/api/tags/{id}
openapi: 3.0.3
info:
  title: Allo API
  description: >-
    Allo API provides programmatic access to your Allo account, allowing you to
    manage webhooks, retrieve calls and contacts, and send SMS messages.


    All requests to `/v1/api/**` endpoints automatically go through quota
    checking and scope validation.
  version: 1.0.0
  contact:
    name: Allo Support
servers:
  - url: https://api.withallo.com
    description: Production server
security: []
tags:
  - name: Summary Templates
    description: >-
      Manage call summary templates that control how AI-generated call summaries
      are structured for your team.
  - name: Webhooks
    description: >-
      Manage webhook endpoints to receive real-time notifications about events
      in your Allo account. Each endpoint subscribes to one or more event topics
      and is verified with a signing secret.
  - name: Calls
    description: >-
      Retrieve and search call records with filtering and pagination. Filter
      calls by your Allo phone number.
  - name: Contacts
    description: >-
      Search and retrieve contact information with sorting and pagination.
      Includes engagement level tracking.
  - name: SMS
    description: Send SMS messages to phone numbers using your Allo numbers.
  - name: Phone Numbers
    description: Retrieve information about your Allo phone numbers.
  - name: Analytics
    description: Pre-computed call metrics, team performance, and outbound dial funnel
  - name: CRM
    description: Manage people, companies, and deals in your CRM.
paths:
  /v2/api/tags/{id}:
    delete:
      tags:
        - Tags
      summary: Delete tag
      description: >-
        Soft-deletes a tag by its key. Tags synced from a CRM integration cannot
        be deleted via the API.
      operationId: deleteTag
      parameters:
        - name: id
          in: path
          required: true
          description: Tag key (the identifier returned by `GET /v2/api/tags`).
          schema:
            type: string
            example: interested
      responses:
        '204':
          description: Tag deleted
        '401':
          $ref: '#/components/responses/ApiUnauthorized'
        '404':
          $ref: '#/components/responses/ApiNotFound'
        '409':
          $ref: '#/components/responses/ApiConflict'
        '429':
          $ref: '#/components/responses/ApiRateLimited'
      security:
        - ApiKeyAuth: []
components:
  responses:
    ApiUnauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiNotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiConflict:
      description: Conflict with existing resource
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiRateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            request_id:
              type: string
            retry_after_seconds:
              type: integer
              nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````