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

# Delete an attribute definition

> Deletes an attribute definition. The response `data` carries `affected_cohort_ids`, the cohorts whose rules named it, so you can review them before they start selecting a different set. Returns 404 when no definition with that id belongs to your tenant.



## OpenAPI

````yaml /openapi/kintra-app.json delete /tenant/{tenantId}/attributes/{attributeId}
openapi: 3.0.0
info:
  description: >-
    Tenant portal API for the Kintra loyalty platform. Requests are
    authenticated with an Auth0 bearer token and address a tenant by id in the
    path.
  title: Kintra Portal API
  version: 1.0.0
servers:
  - description: Production environment
    url: https://api.kintra.io/api/v1
security: []
paths:
  /tenant/{tenantId}/attributes/{attributeId}:
    delete:
      tags:
        - Attributes
      summary: Delete an attribute definition
      description: >-
        Deletes an attribute definition. The response `data` carries
        `affected_cohort_ids`, the cohorts whose rules named it, so you can
        review them before they start selecting a different set. Returns 404
        when no definition with that id belongs to your tenant.
      operationId: DeleteAttribute
      parameters:
        - in: path
          name: tenantId
          required: true
          schema:
            type: string
        - in: path
          name: attributeId
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ApiResponse__affected_cohort_ids-string-Array__
          description: ''
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Feature disabled or insufficient permissions
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Not found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: System-managed attribute — cannot be deleted
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Internal server error
      security:
        - auth0_jwt: []
components:
  schemas:
    ApiResponse__affected_cohort_ids-string-Array__:
      additionalProperties: false
      properties:
        data:
          properties:
            affected_cohort_ids:
              items:
                type: string
              type: array
          required:
            - affected_cohort_ids
          type: object
        errors:
          items:
            properties:
              message:
                type: string
              path:
                type: string
            required:
              - path
              - message
            type: object
          type: array
        message:
          type: string
        success:
          type: boolean
      required:
        - success
      type: object
    ApiResponse_null_:
      additionalProperties: false
      properties:
        data:
          enum:
            - null
          nullable: true
          type: number
        errors:
          items:
            properties:
              message:
                type: string
              path:
                type: string
            required:
              - path
              - message
            type: object
          type: array
        message:
          type: string
        success:
          type: boolean
      required:
        - success
      type: object
  securitySchemes:
    auth0_jwt:
      bearerFormat: JWT
      description: Auth0 access token
      scheme: bearer
      type: http

````