---
title: "Delete gateway credential set"
method: DELETE
path: "/v1/inference-providers/{inferenceProviderId}/credential-sets/{credentialSetId}"
tags: ["Inference Providers"]
---

# Delete gateway credential set

`DELETE /v1/inference-providers/{inferenceProviderId}/credential-sets/{credentialSetId}`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/inference-providers/{inferenceProviderId}/credential-sets/{credentialSetId}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Deletes a credential set, its credentials and pending sign-ins, revokes applicable Google tokens, and returns an empty 204. Referencing grants must be removed first or the operation returns credential_set_in_use. Requires the Manage Gateway providers permission and enabled Gateway management; session callers must recently reauthenticate.

## Path parameters

- `inferenceProviderId` string, typeid, required
- `credentialSetId` string, typeid, required

## Response `204`

Delete gateway credential set

## Other responses

- `400`: Invalid request or provider configuration.
- `401`: Sign-in required.
- `403`: Access denied or Gateway management disabled.
- `404`: Resource not found.
- `409`: Selection or resource conflict.

## Changes

- **2026-10-23** `c93387179b31`: 1 info
  - response property `anyOf[#/components/schemas/InvalidRequestError]/details/items/path/items/` list-of-types was narrowed by removing types `number` from media type `application/json` of response `400`
- **2026-10-01** `df3754993784`: 1 info
  - added the optional property `anyOf[#/components/schemas/InvalidRequestError]/message` to the response with the `400` status
- **2026-09-11** `d76883ffb5c4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/inference-providers/:inferenceProviderId/credential-sets/:credentialSetId/delete.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/8a731021a165?raw)
