# Delete an authentication configuration

**Documentation:** /reference/api-reference/auth-configs/deleteAuthConfigsByNanoid

Soft-deletes an authentication configuration by marking it as deleted in the database. This operation cannot be undone.

---

## DELETE `/api/v3/auth_configs/{nanoid}`

**Endpoint:** `https://backend.composio.dev/api/v3/auth_configs/{nanoid}`

**Summary:** Delete an authentication configuration

Soft-deletes an authentication configuration by marking it as deleted in the database. This operation cannot be undone.

### Authentication

**ApiKeyAuth** - API Key in `header` header `x-api-key` OR **UserApiKeyAuth** - API Key in `header` header `x-user-api-key`

### Path Parameters

- `nanoid` (string (authConfigId)) *(required)*: The unique identifier of the authentication configuration to delete

### Responses

#### 200 - Successfully deleted auth config

**Response Schema:**


#### 400 - Bad request - Invalid auth config ID format

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 401 - Unauthorized - Authentication required

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 404 - Auth config not found - The specified configuration does not exist or was already deleted

**Response Schema:**


#### 500 - Internal server error - Something went wrong on the server

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

### Example cURL Request

```bash
curl -X DELETE "https://backend.composio.dev/api/v3/auth_configs/string" \
  -H "x-api-key: YOUR_API_KEY"
```