> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ellaworks.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ellaworks.ai/_mcp/server.

# Delete LLM Provider

DELETE /api/llm-providers/{id}

Permanently remove a provider configuration

Reference: https://docs.ellaworks.ai/api-reference/ellaworks-prm-api/llm-providers/llm-providers-delete

## Authentication

- `X-API-Key` header (required) — API key supplied via the X-API-Key header. Takes precedence over bearerApiKey when both are present. Listed only on operations that actually accept a key.
- `Authorization` header (bearer token, required) — Same organization API key supplied as a Bearer token in the Authorization header (Authorization: Bearer \<key>). Compatible with OpenAI-SDK-standard clients. Accepted wherever this scheme is listed on the operation — not every endpoint; if both X-API-Key and Authorization: Bearer are present, X-API-Key wins.
- `Authorization` header (bearer token, required) — Supabase session JWT from a signed-in browser session, supplied as Authorization: Bearer \<jwt>. This is what the web app sends. It shares the Authorization header with bearerApiKey; the server distinguishes them by the ela\_ prefix on API keys.

## Request

### Path parameters

- `id` (string, required)

### Query parameters

- `orgSlug` (string, required)

## Response

### 200

OK

- `LLM Providers_llmProvidersDelete_Response_200`

## Examples

**SDK Code**

```python
import requests

url = "https://api/llm-providers/id"

querystring = {"orgSlug":"orgSlug"}

headers = {"X-API-Key": "<apiKey>"}

response = requests.delete(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api/llm-providers/id?orgSlug=orgSlug';
const options = {method: 'DELETE', headers: {'X-API-Key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api/llm-providers/id?orgSlug=orgSlug"

	req, _ := http.NewRequest("DELETE", url, nil)

	req.Header.Add("X-API-Key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api/llm-providers/id?orgSlug=orgSlug")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["X-API-Key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.delete("https://api/llm-providers/id?orgSlug=orgSlug")
  .header("X-API-Key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'https://api/llm-providers/id?orgSlug=orgSlug', [
  'headers' => [
    'X-API-Key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api/llm-providers/id?orgSlug=orgSlug");
var request = new RestRequest(Method.DELETE);
request.AddHeader("X-API-Key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-API-Key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api/llm-providers/id?orgSlug=orgSlug")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```