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 from the project selector in the left navigation bar.

    On the Indexes page, a list of your active indexes displays.

  3. Click the icon for the index you want to delete.

  4. Click Delete.

    You’ll be prompted to enter the index name as a safeguard.

  5. Enter the index name.

  6. 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")