( Default ) is not the name of a namespace; it is a placeholder in the console if a namespace is not specified upon upsert.
To delete all records from a namespace, provide a namespace parameter and specify the appropriate deleteAll parameter for your client. To target the default namespace, set namespace to "" . (Delete all records from a namespace)
index.delete(delete_all=True) or index.delete(delete_all=True, namespace=None) should work for deleting the default namespace as long as it contains records. If you are still experiencing unexpected behavior, please share the version of the Python SDK that you are using.
I have the same problem sometimes when using an index created using the ‘starter’ index template. The error is the 404 Namespace not found.
(I have not managed to reproduce the issue using a ‘normal’ serverless index).
The issue occurs with both index.delete(delete_all=True) and index.delete(delete_all=True, namespace=None).
Going into the pinecone ui, and trying to manually delete the default index also fails after click saying Failed to delete namespace : Namespace not found: