Serverless indexes do not support collections.

:::code-group
```python Python theme={null}
# pip install "pinecone[grpc]"
from pinecone.grpc import PineconeGRPC as Pinecone

pc = Pinecone(api_key='API_KEY')
pc.delete_collection("example-collection")
```

```javascript JavaScript theme={null}
// npm install @pinecone-database/pinecone
import { Pinecone } from '@pinecone-database/pinecone'

const pc = new Pinecone({ apiKey: 'YOUR_API_KEY' })

await pc.deleteCollection("example-collection");
```

```java Java theme={null}
import io.pinecone.clients.Pinecone;

public class DeleteCollectionExample {
    public static void main(String[] args) {
        Pinecone pc = new Pinecone.Builder("YOUR_API_KEY").build();
        pc.deleteCollection("example-collection");
    }
}
```

```go Go theme={null}
package main

import (
    "context"
    "fmt"
    "log"

    "github.com/pinecone-io/go-pinecone/v3/pinecone"
)

func main() {
    ctx := context.Background()

    pc, err := pinecone.NewClient(pinecone.NewClientParams{
        ApiKey: "YOUR_API_KEY",
    })
    if err != nil {
        log.Fatalf("Failed to create Client: %v", err)
    }

    collectionName := "example-collection"

    err = pc.DeleteCollection(ctx, collectionName)
    if err != nil {
	    log.Fatalf("Failed to delete collection: %v\n", err)
    } else {
        if len(collections) == 0 {
            fmt.Printf("No collections found in project")
        } else {
            fmt.Printf("Successfully deleted collection \"%v\"\n", collectionName)
        }
    }
}
```

```csharp C# theme={null}
using Pinecone;

var pinecone = new PineconeClient("YOUR_API_KEY");

await pinecone.DeleteCollectionAsync("example-collection");
```

```shell curl theme={null}
PINECONE_API_KEY="YOUR_API_KEY"

curl -i -X DELETE "https://api.pinecone.io/collections/example-collection" \
  -H "Api-Key: $PINECONE_API_KEY" \
  -H "X-Pinecone-Api-Version: 2025-01"
```
:::

`DELETE /collections/{collection_name}`

:::code-group
```json title="401"
{
  "error": {
    "code": "UNAUTHENTICATED",
    "message": "Invalid API key."
  },
  "status": 401
}
```

```json title="404"
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Collection example-collection not found."
  },
  "status": 404
}
```

```json title="500"
{
  "error": {
    "code": "UNKNOWN",
    "message": "Internal server error"
  },
  "status": 500
}
```
:::

#### Authorizations

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `Api-Key` | `string` | - |  |

An API Key is required to call Pinecone APIs. Get yours from the [console](https://app.pinecone.io/).

#### Path Parameters

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `collection_name` | `string` | - | The name of the collection. |

#### Response

`202` — The collection has been successfully deleted.

## Related pages

- [Create a backup of an index](./database-2026-07-control-plane-create-backup.md)
- [List backups for all indexes in a project](./database-2026-07-control-plane-list-project-backups.md)
- [List backups for an index](./database-2026-07-control-plane-list-index-backups.md)
- [Describe a backup](./database-2026-07-control-plane-describe-backup.md)
- [Delete a backup](./database-2026-07-control-plane-delete-backup.md)
- [Create an index from a backup](./database-2026-07-control-plane-create-index-from-backup.md)
- [List restore jobs](./database-2026-07-control-plane-list-restore-jobs.md)
- [Describe a restore job](./database-2026-07-control-plane-describe-restore-job.md)
- [List collections](./database-2026-07-control-plane-list-collections.md)
- [Create a collection](./database-2026-07-control-plane-create-collection.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
