Indexes
Delete a namespace
To delete a namespace, you must delete all records in the namespace. Once you’ve deleted all the records in the namespace, the namespace will no longer appear in the index.
You can delete all the records in a namespace using the Python SDK with the following approach:
For more documentation on the Delete
operation, see our API reference.
In pod-based indexes, using delete_all=True
could negatively impact the
performance of your queries.
To avoid impacting query performance in pod-based indexes, we recommend deleting the records in batches of a couple of hundred at a time and implementing a brief sleep between operations. You can batch your deletions with the following approach:
Was this page helpful?