Table of Contents

Method RemoveDocumentAsync

Namespace
Qavren.Edge.Ingestion
Assembly
Qavren.Edge.Ingestion.dll

RemoveDocumentAsync(string, string, string?, CancellationToken)

Deletes every chunk and the state row for one document.

Task<int> RemoveDocumentAsync(string sourceId, string documentId, string? collectionName = null, CancellationToken ct = default)

Parameters

sourceId string

The source id.

documentId string

The document id.

collectionName string

Null resolves to the single configured collection.

ct CancellationToken

Cancels the removal.

Returns

Task<int>

1 when the document existed, 0 otherwise.