Skip to main content
func (collectionClient) Delete(
    ctx context.Context,
    datasetID uuid.UUID,
    collectionID uuid.UUID,
) error
Delete a collection by its id.

Parameters

datasetID
uuid.UUID
The id of the dataset
collectionID
uuid.UUID
The id of the collection

Returns

An error if the collection could not be deleted.
err := client.Collections.Delete(ctx,
    datasetID,
    collectionID,
)

Errors

not_found
No such dataset
The specified dataset does not exist.
not_found
No such collection
The specified collection does not exist.