deleteDocuments

public final Unit deleteDocuments(List<String> documentIds)

Deletes multiple documents in one operation.

If the deletion is successful, the function completes normally. If an error occurs, it throws a GiniHealthException containing detailed error information including status code, error response items (with error codes and affected document IDs), request ID, and the original exception. If the request is cancelled, it throws a standard Exception.

Parameters

documentIds

The list of document IDs to be deleted.

Throws

if the deletion fails with an API error

if the request is cancelled