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

# DELETE /audiences/{audienceId}

> Delete an audience



## OpenAPI

````yaml /api/openapi/admin-api.json delete /audiences/{audienceId}
openapi: 3.1.0
info:
  description: Admin API for Fanfare
  title: Fanfare Admin API
  version: 1.0.0
servers:
  - description: Production
    url: https://admin.fanfare.io/api
  - description: Local development
    url: http://localhost:4800
security:
  - SecretKeyAuth: []
paths:
  /audiences/{audienceId}:
    delete:
      tags:
        - Audiences
      description: Delete an audience
      operationId: deleteAudiencesByAudienceId
      parameters:
        - in: path
          name: audienceId
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  archived:
                    type: boolean
                  createdAt:
                    format: date-time
                    type: string
                  createdBy:
                    type: string
                  description:
                    anyOf:
                      - type: string
                      - type: 'null'
                  groupId:
                    anyOf:
                      - format: uuid
                        type: string
                      - type: 'null'
                  groupName:
                    anyOf:
                      - type: string
                      - type: 'null'
                  groupType:
                    anyOf:
                      - enum:
                          - SEGMENTED_VALUE
                          - RFM
                      - type: 'null'
                  iconName:
                    anyOf:
                      - type: string
                      - type: 'null'
                  id:
                    format: uuid
                    type: string
                  lastRefreshedAt:
                    anyOf:
                      - format: date-time
                        type: string
                      - type: 'null'
                  metadata:
                    anyOf:
                      - additionalProperties: {}
                        propertyNames:
                          type: string
                        type: object
                      - type: 'null'
                  name:
                    minLength: 1
                    type: string
                  organizationId:
                    format: uuid
                    type: string
                  primaryExternalId:
                    anyOf:
                      - type: string
                      - type: 'null'
                  primaryLastSyncedAt:
                    anyOf:
                      - format: date-time
                        type: string
                      - type: 'null'
                  primarySourceVendor:
                    anyOf:
                      - type: string
                      - type: 'null'
                  primarySyncSourceId:
                    anyOf:
                      - type: string
                      - type: 'null'
                  refreshIntervalSeconds:
                    anyOf:
                      - type: number
                      - type: 'null'
                  type:
                    enum:
                      - DYNAMIC
                      - STATIC_LIST
                      - SYNCED_LIST
                  updatedAt:
                    anyOf:
                      - format: date-time
                        type: string
                      - type: 'null'
                  updatedBy:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - id
                  - organizationId
                  - createdAt
                  - createdBy
                  - archived
                  - name
                  - type
                type: object
          description: Audience deleted successfully
        '400':
          content:
            application/json:
              schema:
                properties:
                  error:
                    const: validation_error
                  issues:
                    items:
                      properties:
                        expected:
                          type: string
                        kind:
                          type: string
                        message:
                          type: string
                        path:
                          items:
                            properties:
                              input: {}
                              key:
                                type: string
                              origin:
                                type: string
                              type:
                                type: string
                            required:
                              - type
                              - origin
                              - input
                              - key
                            type: object
                          type: array
                        received:
                          type: string
                        type:
                          type: string
                      required:
                        - kind
                        - type
                        - expected
                        - received
                        - message
                        - path
                      type: object
                    type: array
                required:
                  - error
                  - issues
                type: object
          description: Bad Request - Invalid input schema
        '401':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: Unauthorized - Authentication required
        '403':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: Forbidden - User must be authenticated
        '500':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: Internal server error
components:
  securitySchemes:
    SecretKeyAuth:
      description: Fanfare secret key. Keep secret credentials on your server.
      scheme: bearer
      type: http

````