---
title: "Delete a custom API provider"
method: DELETE
path: "/credits/custom-endpoints/{providerId}"
tags: ["Custom APIs"]
---

# Delete a custom API provider

`DELETE /credits/custom-endpoints/{providerId}`

## Request

- Base URL: `https://api.paywithlocus.com/api`
- URL: `https://api.paywithlocus.com/api/credits/custom-endpoints/{providerId}`
- Auth: HTTP bearer

Permanently removes the provider, its encrypted upstream credential, and its custom actions. Requires the same enterprise owner, scope, and recent step-up controls as creation.

## Path parameters

- `providerId` string, uuid, required

## Response `204`

Provider and actions deleted

## Other responses

- `403`: Feature, enterprise plan, owner, scope, or recent step-up requirement not met
- `404`: Custom provider not found in this workspace

---

[API](https://skmtc.dev/paywithlocus/apis/locus-pro-api.md) - [All operations](https://skmtc.dev/paywithlocus/apis/locus-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paywithlocus/apis/locus-pro-api/revisions/aab8fa5d6cef?raw)
