Skip to main content
Pinecone Docs

Search documentation

Type to search this documentation.

Delete an API key

curl
PINECONE_API_KEY_ID="62b0dbfe-3489-4b79-b850-34d911527c88"
PINECONE_ACCESS_TOKEN="YOUR_ACCESS_TOKEN"

curl -X DELETE "https://api.pinecone.io/admin/api-keys/$PINECONE_API_KEY_ID" \
     -H "X-Pinecone-Api-Version: 2025-04" \
     -H "Authorization: Bearer $PINECONE_ACCESS_TOKEN"
CLI
PINECONE_API_KEY_ID="62b0dbfe-3489-4b79-b850-34d911527c88"

# Delete the API key. Use --skip-confirmation to skip 
# the confirmation prompt.
pc api-key delete -i $PINECONE_API_KEY_ID
curl
No response payload
CLI
[WARN] This operation will delete API key example-api-key from project example-project.
[WARN] Any integrations that authenticate with this API key will immediately stop working.
[WARN] This action cannot be undone.
Do you want to continue? (y/N): y
[INFO] You chose to continue delete.
[SUCCESS] API key example-api-key deleted
DELETE/admin/api-keys/{api_key_id}

Delete an API key

2 parameters
  • X-Pinecone-Api-Versionstringheaderrequired

    Required date-based version header

  • api_key_idstringpathrequired

    API key ID

Suggest an edit

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

Export
Documentation menu