Authentication
Bearer token: Bearer <admin_token>
This endpoint requires admin privileges.
Path Parameters
Example Request
curl -X DELETE https://api.sari-platform.com/api/collections/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer <admin_token>"
Response
{
"message": "Collection deleted successfully"
}
What Happens
- Collection Deleted - Removed from database
- Access Removed - All client access grants deleted (cascade)
- Vector Deleted - Embedding removed from Vector_Collections
- Cache Invalidated - All related caches cleared
This action is irreversible. All client access will be revoked.
Errors
| Status | Description |
|---|
| 401 | Invalid or expired token |
| 403 | Admin access required |
| 404 | Collection not found |