Method RemoveDocumentAsync
RemoveDocumentAsync(string, string, string?, CancellationToken)
Deletes every chunk and the state row for one document, in one transaction.
Task<int> RemoveDocumentAsync(string sourceId, string documentId, string? collectionName = null, CancellationToken ct = default)
Parameters
sourceIdstringThe source id.
documentIdstringThe document id.
collectionNamestringNull resolves to the single configured collection.
ctCancellationTokenCancels the removal.
Returns
Exceptions
- EdgeIngestionException
IngestionRunAlreadyActive (6008) while a run or another removal is active on this pipeline.