---
updatedAt: 2025-07-28T18:59:28.000Z
agentTools:
  projectIndex: https://docs.ducky.ai/llms.txt
---

# Delete an index

Delete a specific index by providing its unique identifier.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "contact": {
      "email": "support@ducky.ai",
      "name": "Ducky Developer Support"
    },
    "description": "API for managing and retrieving data from Ducky.",
    "title": "Ducky API",
    "version": "1.0.1"
  },
  "servers": [
    {
      "url": "https://api.ducky.ai"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "paths": {
    "/v1/indexes/{index_name}": {
      "delete": {
        "description": "Delete a specific index by providing its unique identifier.",
        "operationId": "deleteIndex",
        "parameters": [
          {
            "description": "The name of the index to be deleted",
            "explode": false,
            "in": "path",
            "name": "index_name",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "202": {
            "description": "Index deletion request accepted. Ducky will delete the index asynchronously."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request (e.g., missing required fields)"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Index not found"
          }
        },
        "summary": "Delete an index",
        "tags": [
          "indexes"
        ],
        "x-speakeasy-name-override": "delete",
        "x-code-samples": [
          {
            "language": "python",
            "label": "deleteIndex",
            "code": "from duckyai import DuckyAI\nimport os\n\nclient = DuckyAI(\n    api_key=os.getenv(\"DUCKYAI_API_KEY\", \"\"),\n)\nclient.indexes.delete(index_name=\"index-name\")",
            "install": "pip install duckyai"
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "example": {
          "error": "error"
        },
        "properties": {
          "error": {
            "description": "Error message explaining the issue",
            "title": "error",
            "type": "string"
          }
        },
        "title": "ErrorResponse",
        "type": "object"
      }
    },
    "securitySchemes": {
      "api_key": {
        "description": "API key providing access to a project.",
        "in": "header",
        "name": "x-api-key",
        "type": "apiKey"
      }
    }
  },
  "x-google-backend": {
    "address": "api.ducky.ai"
  },
  "x-samples-languages": [
    "python",
    "shell"
  ]
}
```