---
type: api
title: Delete a connector
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/operation/operation-delete-actions-connector-id
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/operation/operation-delete-actions-connector-id
products:
  - Kibana
---

# Delete a connector

- Server: `https://{kibana_url}`

## Paths

- `DELETE` `/api/actions/connector/{id}`
- `DELETE` `/s/{space_id}/api/actions/connector/{id}`

#### Path parameters

- `id` (string) — required
  An identifier for the connector.

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

WARNING: When you delete a connector, it cannot be recovered.

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Header parameters

- `kbn-xsrf` (string) — required
  A required header to protect against CSRF attacks

## Responses

#### `204`

Indicates a successful call.

#### `403`

Indicates that this call is forbidden.

## Code examples

#### Console

```console
DELETE kbn:/api/actions/connector/ID
```

#### curl

```curl
curl -X DELETE "${KIBANA_URL}/api/actions/connector/${ID}" \
  -H "kbn-xsrf: true" \
  -H "Authorization: ApiKey ${API_KEY}"
```

