---
title: "Collections.Delete"
description: "Delete a collection by its id."
image: "https://tilebox.com/images/tilebox-docs-social-preview.png"
---

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

# Collections.Delete

import { Fragment } from "astro/jsx-runtime";

import ApiReference from "@docs/components/ApiReference.astro";

import ParamField from "@docs/components/ParamField.astro";

```go
func (collectionClient) Delete(
    ctx context.Context,
    datasetID uuid.UUID,
    collectionID uuid.UUID,
) error
```

Delete a collection by its id.

## Parameters

**datasetID**

type: uuid.UUID

The id of the dataset
**collectionID**

type: uuid.UUID

The id of the collection

## Returns

An error if the collection could not be deleted.

## Errors

**not_found**

type: No such dataset

The specified dataset does not exist.
**not_found**

type: No such collection

The specified collection does not exist.

<h2 id="request-example">Usage example</h2>

```go
err := client.Collections.Delete(ctx,
    datasetID,
    collectionID,
)
```

Source: https://tilebox.com/docs/api-reference/go/datasets/Collections.Delete/index.mdx
