DELETE
/
embeddings
/
delete
cURL
curl --request DELETE \
  --url https://api.usecortex.ai/embeddings/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --header 'accept: <accept>' \
  --data '{
  "chunk_ids": [
    "CortexEmbeddings123_1"
  ],
  "tenant_id": "tenant_456",
  "sub_tenant_id": "subtenant_123"
}'
{
  "status": {
    "CortexEmbeddings123_1": true
  },
  "total_deleted": 1
}

Sample Request

curl --location --request DELETE 'https://api.usecortex.ai/embeddings/delete' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "chunk_ids": ["CortexEmbeddings123_1"],
    "tenant_id": "{TENANT_ID}",
    "sub_tenant_id": "{SUB_TENANT_ID}"
  }'

Sample Response

{
  "status": {
    "CortexEmbeddings123_1": true
  },
  "total_deleted": 1
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

Bearer token (your API key)

Content-Type
string
default:application/json
required

Request content type

accept
string
default:application/json
required

Response content type

Body

application/json

Response

200
application/json

Embedding chunks deleted successfully

The response is of type object.