---
title: "Clusters.Delete"
description: "Delete a cluster by its slug."
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.

# Clusters.Delete

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

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

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

```go
func (*ClusterClient) Delete(ctx context.Context, slug string) error
```

Delete a cluster by its slug.

## Parameters

**slug**

type: string

The slug of the cluster to delete

## Returns

An error if the cluster could not be deleted.

## Errors

**not_found**

type: cluster not found

The specified cluster does not exist.

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

```go
err := client.Clusters.Delete(ctx,
    "my-cluster-tZD9Ca1qsqt3V"
)
```

Source: https://tilebox.com/docs/api-reference/go/workflows/Clusters.Delete/index.mdx
