---
title: "Delete a private provider"
method: DELETE
path: "/private-providers/{slug}"
tags: ["Private Providers"]
---

# Delete a private provider

`DELETE /private-providers/{slug}`

## Request

- Base URL: `https://openrouter.ai/api/v1`
- URL: `https://openrouter.ai/api/v1/private-providers/{slug}`
- Auth: HTTP bearer

Delete a private provider. Refuses (409) while any private endpoint still runs under it. [Management key](/docs/guides/overview/auth/management-api-keys) required.

## Path parameters

- `slug` string, required

## Response `200`

The provider was deleted

- object
  - `data` object, required
    - `slug` string, required: The slug you chose, unique within your account. Use it as `provider_slug` when creating private endpoints and BYOK keys, and in `provider.order`, `only` and `ignore`.

## Other responses

- `400`: Bad Request - Invalid request parameters or malformed input
- `401`: Unauthorized - Authentication required or invalid credentials
- `403`: Forbidden - Authentication successful but insufficient permissions
- `404`: Not Found - Resource does not exist
- `408`: Request Timeout - Operation exceeded time limit
- `409`: Conflict - Resource conflict or concurrent modification
- `422`: Unprocessable Entity - Semantic validation failure
- `429`: Too Many Requests - Rate limit exceeded
- `500`: Internal Server Error - Unexpected server error
- `502`: Bad Gateway - Provider/upstream API failure

## Changes

- **2026-10-29** `58d330fbac62`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openrouterteam/apis/openrouter-api/changes/private-providers/:slug/delete.md)

---

[API](https://skmtc.dev/openrouterteam/apis/openrouter-api.md) - [All operations](https://skmtc.dev/openrouterteam/apis/openrouter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openrouterteam/apis/openrouter-api/revisions/f797e38f23b4?raw)
