Authorizations
Bearer token authentication using your API key. Format: 'Bearer your_api_key'. To get an API key, create an account at mixpeek.com/start and generate a key in your account settings.
Headers
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
"Bearer sk_live_abc123def456"
"Bearer sk_test_xyz789"
REQUIRED: Namespace identifier for scoping this request. All resources (collections, buckets, taxonomies, etc.) are scoped to a namespace. You can provide either the namespace name or namespace ID. Format: ns_xxxxxxxxxxxxx (ID) or a custom name like 'my-namespace'
"ns_abc123def456"
"production"
"my-namespace"
Path Parameters
The ID of the collection to delete documents from.
Body
Request model for batch deleting multiple documents by explicit IDs or filters.
Supports TWO modes:
- Explicit IDs mode: Provide 'document_ids' array
- Filter mode: Provide 'filters' to delete all matching documents
Use Cases: - Delete 5 specific documents in one API call - Delete all documents matching criteria - Bulk cleanup operations
Requirements: - EITHER 'document_ids' OR 'filters' must be provided - NOT BOTH modes simultaneously
OPTIONAL. List of document IDs to delete. Use this mode when you know exact document IDs to delete. Mutually exclusive with filters mode. Maximum 1000 documents per batch request.
1 - 1000 elements["doc_123", "doc_456", "doc_789"]["doc_frame_001", "doc_frame_002"]OPTIONAL. Filter conditions to match documents for deletion. Mutually exclusive with 'document_ids' array. If provided, deletes ALL documents matching the filters. Use with caution - can delete many documents at once. Represents a logical operation (AND, OR, NOT) on filter conditions.
Allows nesting with a defined depth limit.
Also supports shorthand syntax where field names can be passed directly as key-value pairs for equality filtering (e.g., {"metadata.title": "value"}).
{
"must": [
{
"key": "metadata.status",
"value": "archived"
}
]
}Response
Successful Response
Response model for batch document delete operation.
Provides detailed per-document results showing success/failure for each deletion.
Total number of documents successfully deleted
Total number of documents that failed to delete
Detailed per-document results. Each entry shows document_id, success status, and error message (if failed). Empty list when using filter mode (only counts returned).
Summary message of the operation

