> ## Documentation Index
> Fetch the complete documentation index at: https://www.algolia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Provider

> Delete Provider.

**Required ACL:** `editSettings`

## Usage

```cs C# theme={"system"}
// Initialize the client
var client = new AgentStudioClient(
  new AgentStudioConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
);

// Call the API
await client.DeleteProviderAsync("c2905529-b933-4b69-87ec-75f9829d5f59");
```

```dart Dart theme={"system"}
// Initialize the client
final client = AgentStudioClient(
    appId: 'ALGOLIA_APPLICATION_ID', apiKey: 'ALGOLIA_API_KEY');

// Call the API
await client.deleteProvider(
  providerId: "c2905529-b933-4b69-87ec-75f9829d5f59",
);
```

```go Go theme={"system"}
// Initialize the client
client, err := agentStudio.NewClient("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
if err != nil {
  // The client can fail to initialize if you pass an invalid parameter.
  panic(err)
}

// Call the API
err = client.DeleteProvider(client.NewApiDeleteProviderRequest(
  "c2905529-b933-4b69-87ec-75f9829d5f59"))
if err != nil {
  // handle the eventual error
  panic(err)
}
```

```java Java theme={"system"}
// Initialize the client
AgentStudioClient client = new AgentStudioClient("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY");

// Call the API
client.deleteProvider("c2905529-b933-4b69-87ec-75f9829d5f59");
```

```js JavaScript theme={"system"}
// Initialize the client
const client = agentStudioClient('ALGOLIA_APPLICATION_ID', 'ALGOLIA_API_KEY');

// Call the API
await client.deleteProvider({ providerId: 'c2905529-b933-4b69-87ec-75f9829d5f59' });
```

```kotlin Kotlin theme={"system"}
// Initialize the client
val client = AgentStudioClient(appId = "ALGOLIA_APPLICATION_ID", apiKey = "ALGOLIA_API_KEY")

// Call the API
client.deleteProvider(providerId = "c2905529-b933-4b69-87ec-75f9829d5f59")
```

```php PHP theme={"system"}
// Initialize the client
$client = AgentStudioClient::create('ALGOLIA_APPLICATION_ID', 'ALGOLIA_API_KEY');

// Call the API
$client->deleteProvider(
    'c2905529-b933-4b69-87ec-75f9829d5f59',
);
```

```python Python theme={"system"}
# Initialize the client
# In an asynchronous context, you can use AgentStudioClient instead, which exposes the exact same methods.
client = AgentStudioClientSync("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")

# Call the API
client.delete_provider(
    provider_id="c2905529-b933-4b69-87ec-75f9829d5f59",
)
```

```ruby Ruby theme={"system"}
# Initialize the client
client = Algolia::AgentStudioClient.create("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")

# Call the API
client.delete_provider("c2905529-b933-4b69-87ec-75f9829d5f59")
```

```scala Scala theme={"system"}
// Initialize the client
val client = AgentStudioClient(appId = "ALGOLIA_APPLICATION_ID", apiKey = "ALGOLIA_API_KEY")

// Call the API
Await.result(
  client.deleteProvider(
    providerId = "c2905529-b933-4b69-87ec-75f9829d5f59"
  ),
  Duration(100, "sec")
)
```

```swift Swift theme={"system"}
// Initialize the client
let client = try AgentStudioClient(appID: "ALGOLIA_APPLICATION_ID", apiKey: "ALGOLIA_API_KEY")

// Call the API
try await client.deleteProvider(providerId: "c2905529-b933-4b69-87ec-75f9829d5f59")
```

> [card] [See the full API reference](https://www.algolia.com/doc/rest-api/agent-studio/delete-provider.md)
>
> For more details about input parameters
> and response fields.
