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

# Delete collection

> Delete a collection and all its data permanently. This operation is irreversible. All vectors, payloads, and indexes will be permanently removed.



## OpenAPI

````yaml delete /collections/{collection_name}
openapi: 3.0.3
info:
  title: Actian VectorAI DB - Collections API
  description: Collection management API for Actian VectorAI DB.
  version: 1.0.0
  contact:
    name: Actian Corporation
    url: https://www.actian.com
servers:
  - url: http://localhost:6573
    description: Local development server (REST API)
  - url: https://api.vectorai.actian.com
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Collections
    description: Collection lifecycle management operations
paths:
  /collections/{collection_name}:
    delete:
      tags:
        - Collections
      summary: Delete collection
      description: >-
        Delete a collection and all its data permanently. This operation is
        irreversible. All vectors, payloads, and indexes will be permanently
        removed.
      operationId: delete_collection
      parameters:
        - name: collection_name
          in: path
          required: true
          description: The name of the collection to delete.
          schema:
            type: string
            example: my_collection
        - name: timeout
          in: query
          required: false
          description: The maximum time to wait for the operation to complete, in seconds.
          schema:
            type: integer
            example: 30
      responses:
        '200':
          description: Collection deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  usage:
                    type: object
                    properties:
                      hardware:
                        type: object
                        nullable: true
                        description: >-
                          Hardware resource counters for the operation,
                          including CPU, payload I/O, payload index I/O, and
                          vector I/O metrics.
                  time:
                    type: number
                    format: double
                    example: 0.006704791
                    description: Time spent to process this request, in seconds.
                  status:
                    type: string
                    example: ok
                    description: Operation status.
                  result:
                    type: boolean
                    example: true
                    description: Whether the operation completed successfully.
              examples:
                success:
                  value:
                    usage:
                      hardware: null
                    time: 0.006704791
                    status: ok
                    result: true
      x-codeSamples:
        - lang: Python
          label: Delete collection
          source: |
            from actian_vectorai_client import VectorAIClient

            with VectorAIClient("localhost:6574") as client:
                # Delete collection
                if client.collections.exists("my_collection"):
                    client.collections.delete("my_collection")
                    print("✓ Collection deleted")
                else:
                    print("Collection does not exist")
        - lang: JavaScript
          label: Delete collection
          source: |
            import { VectorAIClient } from '@actian/vectorai-client';

            const client = new VectorAIClient('localhost:6574');

            await client.collections.delete('my_collection');
            console.log('Deleted collection');

            client.close();
        - lang: cURL
          label: Delete collection
          source: |
            curl -X DELETE "http://localhost:6573/collections/my_collection" \
              -H "Accept: application/json" \
              -H 'Authorization: Bearer <admin-jwt-or-access-token>'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Admin JWT or access token for authenticating requests to VectorAI DB.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.