EnsureCollectionDeletedAsync

This method deletes the collection from the vector store if it exists.

Declaration

// C#
public async Task EnsureCollectionDeleteAsync(CancellationToken cancellationToken = default)

Parameters

  • cancellationToken

    The cancellation token.

Return Value

A task representing the asynchronous operation that completes when the collection has been deleted from the database.

Implements

Microsoft.Extensions.VectorData.VectorStoreCollection