> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tilebox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Client.Collections.Delete

```go theme={"system"}
func (collectionClient) Delete(
    ctx context.Context,
    datasetID uuid.UUID,
    collectionID uuid.UUID,
) error
```

Delete a collection by its id.

## Parameters

<ParamField path="datasetID" type="uuid.UUID">
  The id of the dataset
</ParamField>

<ParamField path="collectionID" type="uuid.UUID">
  The id of the collection
</ParamField>

## Returns

An error if the collection could not be deleted.

<RequestExample>
  ```go Go theme={"system"}
  err := client.Collections.Delete(ctx,
      datasetID,
      collectionID,
  )
  ```
</RequestExample>

## Errors

<ParamField path="not_found" type="No such dataset">
  The specified dataset does not exist.
</ParamField>

<ParamField path="not_found" type="No such collection">
  The specified collection does not exist.
</ParamField>
