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

# Delete Collection

> Delete a collection.

Deletes it on the provider first, then removes the gateway ownership row.
A collection already gone on the provider still gets its row removed, so
delete is idempotent and half-failed deletes can always be cleaned up.



## OpenAPI

````yaml https://api.edenai.run/v3/docs/openapi.json delete /v3/universal-ai/collections/{collection_id}
openapi: 3.1.0
info:
  title: Eden AI API V3
  version: 3.0.0
servers:
  - url: https://api.edenai.run
    description: Production server
security: []
paths:
  /v3/universal-ai/collections/{collection_id}:
    delete:
      tags:
        - collections
      summary: Delete Collection
      description: >-
        Delete a collection.


        Deletes it on the provider first, then removes the gateway ownership
        row.

        A collection already gone on the provider still gets its row removed, so

        delete is idempotent and half-failed deletes can always be cleaned up.
      operationId: delete_collection_v3_universal_ai_collections__collection_id__delete
      parameters:
        - name: collection_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Collection Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteCollectionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - AuthBearer: []
components:
  schemas:
    DeleteCollectionResponse:
      properties:
        collection_id:
          type: string
          format: uuid
          title: Collection Id
        deleted:
          type: boolean
          title: Deleted
      type: object
      required:
        - collection_id
        - deleted
      title: DeleteCollectionResponse
      description: Result of deleting a collection.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    AuthBearer:
      type: http
      scheme: bearer

````