v4

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-13216144508.7 KB
kb

Batch Delete Collections Api

Delete multiple collections in one request.

For each name, runs the same pipeline as single delete (permissions, physical trash, LanceDB, UploadedFile cleanup). Per-item failures are collected in failed; they do not roll back earlier successful deletions in the batch. LanceDB removal uses delete_collection with tenant-aware user_id and is_admin filtering. Returns deleted and failed name lists.

post/api/kb/collections/batch-delete

Request body

collection_namesstring[] required

List of collection names to delete

Response

Successful Response

deletedstring[]

Collection names that were deleted successfully