Skip to main content
POST
Delete Vectors
Delete specific items from the index by their IDs.

Authentication

Required - API key via X-API-Key header:
Any valid credential is accepted — the root key or a per-user cdbk_ token. When RBAC is not enabled (CYBORGDB_SERVICE_ROOT_KEY unset), no header is required.

Request Body

Response

Exceptions

Authentication failed (invalid API key) or wrong index_key on SDK-supplied indexes — see error model
Index not found
Invalid request parameters
Internal server error
If some IDs don’t exist in the index, they will be silently ignored and the operation will continue with the existing IDs.

Example Usage

Delete Single Item:
Delete Multiple Items:
Batch Delete:

Safe Delete Pattern

Data Removal

When vectors are deleted, the following data is permanently removed:
  • Vector embeddings: The stored vector representation
  • Item contents: Any associated text or binary content
  • Metadata: All key-value metadata pairs for the item
  • Index references: Internal index pointers to the deleted items

Performance Considerations

  • Batch operations: Delete multiple items in single requests for better performance
  • Index impact: Large deletions may affect index efficiency; consider retraining after significant deletions
  • Memory: Deleted items may not immediately free memory until index optimization occurs

Use Cases

  • Data cleanup: Remove outdated or invalid items
  • Content moderation: Delete inappropriate or flagged content
  • User management: Remove user-associated data upon account deletion
  • Testing cleanup: Clean up test data after development
  • Data governance: Remove data that exceeds retention policies