Skip to main content
DELETE
/
embeddings
/
delete
Delete Embeddings
curl --request DELETE \
  --url https://api.usecortex.ai/embeddings/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "chunk_ids": [
    "CortexEmbeddings123_0",
    "CortexEmbeddings123_1"
  ],
  "tenant_id": "tenant_1234",
  "sub_tenant_id": "sub_tenant_4567"
}'
{
  "total_deleted": 1,
  "status": {},
  "success": true,
  "message": "Embeddings deleted successfully"
}
Hit the Try it button to try this API now in our playground. It’s the best way to check the full request and response in one place, customize your parameters, and generate ready-to-use code snippets.

Examples

  • API Request
  • TypeScript
  • Python (Sync)
curl --request DELETE \
  --url https://api.usecortex.ai/embeddings/delete \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "sub_tenant_id": ""
}'

Error Responses

All endpoints return consistent error responses following the standard format. For detailed error information, see our Error Responses documentation.

Authorizations

Authorization
string
header
required

Body

application/json
chunk_ids
string[]
required
Example:
tenant_id
string
required
Example:
sub_tenant_id
string
default:""
Example:

Response

total_deleted
integer
required
Example:
status
object
required
success
boolean
default:true
Example:
message
string
default:Embeddings deleted successfully