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:
You can get an API key from the CyborgDB Admin Dashboard. For more info, follow this guide.

Request Body

Response

Exceptions

  • 401: Authentication failed (invalid API key)
  • 404: Index not found
  • 422: Invalid request parameters
  • 500: 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