ComenzarEmpieza gratis

Deleting an index

If you have an index that has gone stale, perhaps it's time to delete it! Deleting an index will also delete all of the data it contains, so be cautious when doing this in your own projects!

Este ejercicio forma parte del curso

Vector Databases for Embeddings with Pinecone

Ver curso

Instrucciones del ejercicio

  • Initialize the Pinecone connection with your API key.
  • Delete the index you've been working with: "my-first-index".
  • List your indexes to verify it has been deleted.

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# Set up the client with your API key
pc = Pinecone(api_key="____")

# Delete your Pinecone index
____

# List your indexes
print(____)
Editar y ejecutar código