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

# Delete Decision Engine Tag

> Delete a tag key. The request fails with 409 if a message or channel uses
the key, unless `cascade` is true, or if a flow tag limit or eligibility
setting uses the key.



## OpenAPI

````yaml https://api.hightouch.io/api/swagger.json delete /decision-engine/tags/{key}
openapi: 3.0.0
info:
  title: Hightouch API
  version: 1.0.0
  description: Hightouch Public Rest API to access syncs, models, sources and destinations
  contact:
    name: Hightouch
    url: https://hightouch.com
servers:
  - url: https://api.hightouch.com/api/v1
security: []
paths:
  /decision-engine/tags/{key}:
    delete:
      tags:
        - AI Decisioning
      summary: Delete Decision Engine Tag
      description: >-
        Delete a tag key. The request fails with 409 if a message or channel
        uses

        the key, unless `cascade` is true, or if a flow tag limit or eligibility

        setting uses the key.
      operationId: DeleteTag
      parameters:
        - description: The tag key
          in: path
          name: key
          required: true
          schema:
            type: string
        - description: |-
            Remove the key from the messages or channels that use it.
            The config changes first, and this removal is a best effort. If some
            messages or channels keep the key, send the request again.
          in: query
          name: cascade
          required: false
          schema:
            default: false
            type: boolean
        - description: The kind of object the tag applies to
          in: query
          name: type
          required: false
          schema:
            $ref: '#/components/schemas/DecisionEngineTagType'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                anyOf:
                  - {}
                  - $ref: '#/components/schemas/DecisionEngineErrorResponse'
                  - $ref: '#/components/schemas/ValidateErrorJSON'
                  - $ref: '#/components/schemas/InternalServerError'
                nullable: true
        '204':
          description: No Content
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecisionEngineErrorResponse'
        '409':
          description: The tag is in use
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecisionEngineErrorResponse'
        '422':
          description: Too many messages to change
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecisionEngineErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    DecisionEngineTagType:
      type: string
      enum:
        - message
        - channel
      description: |-
        The kind of object a tag applies to. Message tags and channel tags have
        separate configurations.
    DecisionEngineErrorResponse:
      properties:
        message:
          type: string
          description: Why the request failed.
      required:
        - message
      type: object
      additionalProperties: false
    ValidateErrorJSON:
      properties:
        message:
          type: string
          enum:
            - Validation failed
          nullable: false
        details:
          properties: {}
          additionalProperties: {}
          type: object
      required:
        - message
        - details
      type: object
      additionalProperties: false
    InternalServerError:
      type: string
      enum:
        - Internal Server Error
      nullable: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Bearer

````