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

# Delete a cohort

> Deletes a cohort. Insights and endpoints already referencing it keep working against its last computed membership.



## OpenAPI

````yaml /openapi.json delete /api/v1/cohorts/{cohortId}
openapi: 3.0.3
info:
  title: DataDash Analytics API
  version: 1.0.0
servers: []
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /api/v1/cohorts/{cohortId}:
    delete:
      tags:
        - Cohorts
      summary: Delete a cohort
      description: >-
        Deletes a cohort. Insights and endpoints already referencing it keep
        working against its last computed membership.
      operationId: deleteCohort
      parameters:
        - in: path
          name: cohortId
          required: true
          schema:
            pattern: ^[0-9A-HJ-KM-NP-TV-Z]{13}$
            type: string
      responses:
        '204':
          description: cohort deleted
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            invalid request (malformed body, unknown field, or failed
            validation)
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: missing or invalid credentials
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: credentials lack access to this resource
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: no such cohort
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: internal error
components:
  schemas:
    Error:
      properties:
        code:
          description: machine-readable error code
          type: string
        message:
          description: human-readable description
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: API key issued for programmatic access.
      in: header
      name: X-Api-Key
      type: apiKey
    BearerAuth:
      bearerFormat: JWT
      description: User access token.
      scheme: bearer
      type: http

````