# Collections.Delete

```go
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.

```go title="Go"
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.
