Manage namespaces
This page describes how to list, describe, and delete a namespace in Pinecone.
These operations are available in API versions 2025-04
and later.
List all namespaces in an index
To list all namespaces in a serverless index:
The response will look like the following:
Up to 100 namespaces are returned at a time by default, in sorted order (bitwise “C” collation). If the limit
parameter is set, up to that number of namespaces are returned instead. Whenever there are additional namespaces to return, the response also includes a pagination_token
that you can use to get the next batch of namespaces. When the response does not include a pagination_token
, there are no more namespaces to return.
Describe a namespace
To get details about a namespace in a serverless index, including the total number of vectors in the namespace:
The response will look like the following:
Delete a namespace
To delete a namespace in a serverless index:
Deleting a namespace is irreversible. All data in the namespace will be permanently deleted.
Rename a namespace
Pinecone does not support renaming namespaces directly. Instead, you must delete the records in the namespace and upsert the records to a new namespace.
Move records to a new namespace
Pinecone does not support moving records between namespaces directly. Instead, you must delete the records in the old namespace and upsert the records to the new namespace.
Was this page helpful?