---
type: api
title: Tear down organization IdP
description: Tear down up an organization's IdP. Currently unavailable in self-hosted ECE.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/v4/operation/operation-teardown-organization-idp
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/v4/operation/operation-teardown-organization-idp
products:
  - Elastic Cloud Enterprise
---

# Tear down organization IdP

## Paths

- `DELETE` `/organizations/{organization_id}/idp`

#### Path parameters

- `organization_id` (string) — required
  Identifier for the Organization

## Description

Tear down up an organization's IdP. Currently unavailable in self-hosted ECE.

## Authentication

- Basic: `Authorization: Basic <credentials>`
- Api key: `Authorization: <value>`

## Responses

#### `200`

The IdP was successfully removed

`application/json`

Type: `object`

#### `404`

Organization IdP not configured. (code: `org.idp.idp_not_configured`)

`application/json`

- `errors` (object[])
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` (string[])
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

## Code examples

#### curl

```curl
curl -X DELETE "${API_URL}/organizations/${ORGANIZATION_ID}/idp" \
  -u "${USERNAME}:${PASSWORD}"
```

