---
type: api
title: Disconnect a Cloud Connected cluster
description: Disconnect a Cloud Connected cluster.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-connect/operation/operation-deletecluster
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-connect/operation/operation-deletecluster
products:
  - Elastic Cloud Hosted
---

# Disconnect a Cloud Connected cluster

- Server: `https://api.elastic-cloud.com`

## Paths

- `DELETE` `/api/v1/cloud-connected/clusters/{id}`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/cloud-connect/authentication#apikey)

## Description

Disconnect a Cloud Connected cluster.
When `If-Match` is provided, the request is only applied if the current ETag matches.

## Responses

#### `200`

Cluster disconnection scheduled.

##### Response Headers

- `ETag` (string)

#### `401`

Unauthorized

`application/json`

- `errors` ([] ErrorResponse)
  - `message` (string)
    A human-readable message of the error.
  - `code` (string)
    An identifier for this type of error.
#### `403`

Forbidden

`application/json`

- `errors` ([] ErrorResponse)
  - `message` (string)
    A human-readable message of the error.
  - `code` (string)
    An identifier for this type of error.
#### `404`

Not Found

`application/json`

- `errors` ([] ErrorResponse)
  - `message` (string)
    A human-readable message of the error.
  - `code` (string)
    An identifier for this type of error.
#### `409`

Conflict

`application/json`

- `errors` ([] ErrorResponse)
  - `message` (string)
    A human-readable message of the error.
  - `code` (string)
    An identifier for this type of error.
#### `412`

Precondition failed

`application/json`

- `errors` ([] ErrorResponse)
  - `message` (string)
    A human-readable message of the error.
  - `code` (string)
    An identifier for this type of error.
## Code Examples

#### Console

```console
DELETE /api/v1/cloud-connected/clusters/{id}
```

#### curl

```curl
curl -X DELETE "https://api.elastic-cloud.com/api/v1/cloud-connected/clusters/{id}"
```

