curl $UPSTASH_VECTOR_REST_URL/delete-namespace/ns \
-X DELETE \
-H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN"
{
"result": "Success"
}
{
"error": "Namespace ns for the index $NAME does not exist",
"status": 404
}
Endpoints
Delete Namespace
Deletes a namespace of an index.
DELETE
/
delete-namespace
/
{namespace}
curl $UPSTASH_VECTOR_REST_URL/delete-namespace/ns \
-X DELETE \
-H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN"
{
"result": "Success"
}
{
"error": "Namespace ns for the index $NAME does not exist",
"status": 404
}
The default namespace, which is the empty string
"", cannot be deleted.Request
This endpoint doesn’t require any additional data.Path
string
required
The namespace to delete.
Response
string
"Success" string.curl $UPSTASH_VECTOR_REST_URL/delete-namespace/ns \
-X DELETE \
-H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN"
{
"result": "Success"
}
{
"error": "Namespace ns for the index $NAME does not exist",
"status": 404
}
Was this page helpful?