Bulk Delete Documents (V2)

View as Markdown
Delete multiple documents in a single request. Performs strict validation: - Checks if document exists - Checks user permissions (Owner or Workspace Editor+) - Checks if document is used in any Experience (blocks deletion) If valid, queues an atomic background task for deletion.

Request

This endpoint expects an object.
document_idslist of integersRequired

List of document IDs to delete (max 100 at once)

Response

Bulk deletion processed (check results for individual status)

total_requestedinteger
Total documents requested for deletion
deleted_countinteger
Number of documents successfully deleted
failed_countinteger
Number of documents that failed to delete
resultslist of maps from strings to any
Detailed results for each document

Errors

400
Bad Request Error
401
Unauthorized Error