Encrypted Index
Delete Vectors
POST
Delete Vectors
Delete specific items from the index by their IDs.
Any valid credential is accepted — the root key or a per-user
Delete Multiple Items:
Batch Delete:
Authentication
Required - API key viaX-API-Key header:
cdbk_ token. When RBAC is not enabled (CYBORGDB_SERVICE_ROOT_KEY unset), no header is required.
Request Body
Response
Exceptions
404 Not Found
404 Not Found
Index not found
422 Unprocessable Entity
422 Unprocessable Entity
Invalid request parameters
500 Internal Server Error
500 Internal Server Error
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: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