?
dataSources.remove
Removes a document and its vectors from the corpus.
DataSource.remove(documentId) → void
Removes one document and its vectors from the corpus. Since a corpus is shared across dev and prod, a removal in development takes the document out of what production searches. To discard a whole corpus rather than one document, delete it from the CLI.
Parameters
documentId
string
RequiredThe document to remove, from documents().
Remove a document
await Policies.remove(documentId);