This page shows you how to delete all of the data in an index. For pod-based indexes, deleting an index also deletes the associated computing resources. You can delete your Pinecone indexes in one of two ways: through the Pinecone console or the API.

To learn about the concepts related to indexes, see Indexes.

When you create a pod-based index, it runs as a service until you delete it. Users are
billed for running pod-based indexes, so we recommend you delete any you’re not
using. This will minimize your costs.

For serverless indexes, you only pay for what you use, so there’s no extra cost for having additional indexes.

Console

  1. Open the Pinecone console.
  2. Select your project.
  3. Search for the index you want to delete.
  4. Click the icon for the index.
  5. Click Delete.
  6. Enter the index name.
  7. Click Delete Index.

API

The following example deletes a Pinecone index named “example-index”:

from pinecone import Pinecone, PodSpec

pc = Pinecone(api_key="YOUR_API_KEY")

pc.delete_index("example-index")