Endpoints

Delete Namespace

Deletes a namespace of an index.

The default namespace, which is the empty string "", cannot be deleted.

Request

This endpoint doesn't require any additional data.

Path

namespacepathstringrequired

The namespace to delete.

Response

resultstring

"Success" string.

curl
curl $UPSTASH_VECTOR_REST_URL/delete-namespace/ns \  -X DELETE \  -H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN"
200 OK
{    "result": "Success"}
404 Not Found
{    "error": "Namespace ns for the index $NAME does not exist",    "status": 404}
Loading search…