---
type: api
title: Delete a managed integration
description: Delete a managed integration
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-delete-fleet-managed-integrations-policyid
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-delete-fleet-managed-integrations-policyid
products:
  - Kibana
---

# Delete a managed integration

Availability: Experimental since 9.3

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

## Paths

- `DELETE` `/api/fleet/managed_integrations/{policyId}`

#### Path parameters

- `policyId` (string · max length: 256) — required
  The ID of the policy to delete.

## Description

Delete a managed integration

## 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>`

## Query string parameters

- `force` (boolean) — optional
  Force delete the policy even if the policy is managed.

## Header parameters

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

## Responses

#### `200`

Indicates a successful response

`application/json`

- `id` (string)
  The ID of the deleted managed integration.
#### `400`

Bad Request

`application/json`

- `attributes` (object)
- `error` (string)
- `errorType` (string)
- `message` (string)
- `statusCode` (number)
#### `404`

Not Found

`application/json`

- `message` (string)
#### `409`

Conflict

`application/json`

- `attributes` (object)
- `error` (string)
- `errorType` (string)
- `message` (string)
- `statusCode` (number)
## Code examples

#### Console

```console
DELETE kbn:/api/fleet/managed_integrations/POLICY_ID
```

#### curl

```curl
curl -X DELETE "${KIBANA_URL}/api/fleet/managed_integrations/${POLICY_ID}" \
  -H "kbn-xsrf: true" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Delete managed integrations response

Example response for deleting a managed integration

```json
{
  "item": {
    "id": "d52a7812-5736-4fdc-aed8-72152afa1ffa"
  }
}
```

#### Generic error response

Example of a generic error response

```json
{
  "error": "Bad Request",
  "message": "An error message describing what went wrong",
  "statusCode": 400
}
```

#### Not found error response

Example of a not found error response

```json
{
  "message": "Agentless policy d52a7812-5736-4fdc-aed8-72152afa1ffa not found"
}
```

#### Conflict error response

Example of a conflict error response

```json
{
  "error": "Conflict",
  "message": "An error message describing what went wrong",
  "statusCode": 409
}
```

