Skip to main content
Pinecone Docs
current

Search documentation

Type to search this documentation.

Delete a namespace alias

Remove an alias. The target namespace and its data are unchanged. Reads

that still use the alias name are treated as reads of a nonexistent namespace (empty results, not an error), so migrate readers off the alias first.

The call returns once no reader still resolves the alias, which takes about a second; size client timeouts accordingly. A retried delete that returns 404 means the alias is already gone and carries the same guarantee.

For guidance and examples, see Manage namespace aliases.

curl
# To get the unique host for an index,
# see https://docs.pinecone.io/guides/manage-data/target-an-index
PINECONE_API_KEY="YOUR_API_KEY"
INDEX_HOST="INDEX_HOST"
ALIAS_NAME="dataset"

curl -X DELETE "https://$INDEX_HOST/namespace-aliases/$ALIAS_NAME" \
    -H "Api-Key: $PINECONE_API_KEY" \
    -H "X-Pinecone-Api-Version: 2026-07"

DELETE /namespace-aliases/{alias_name}

200
{}
400
{
  "code": 123,
  "message": "<string>",
  "details": [
    {
      "typeUrl": "<string>",
      "value": "<string>"
    }
  ]
}
404
{
  "code": 123,
  "message": "<string>",
  "details": [
    {
      "typeUrl": "<string>",
      "value": "<string>"
    }
  ]
}
4XX
{
  "code": 123,
  "message": "<string>",
  "details": [
    {
      "typeUrl": "<string>",
      "value": "<string>"
    }
  ]
}
5XX
{
  "code": 123,
  "message": "<string>",
  "details": [
    {
      "typeUrl": "<string>",
      "value": "<string>"
    }
  ]
}
Api-Keystringrequired

An API Key is required to call Pinecone APIs. Get yours from the console.

X-Pinecone-Api-Versionstringrequired

Required date-based version header

Typestring
Default2026-07
alias_namestringrequired

The name of the alias. Must be 1-512 characters of printable ASCII, excluding space and / ? # % & = \ ; +.

Required string length: 1 - 512

Typestring

200 — A successful response.

response?object

The response for the delete operation.

Typeobject
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu