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

# How do I delete a provider from HasMCP?

> Step-by-step instructions on permanently deleting an API Provider mapping via the HasMCP Manager API.

# Deleting an API Provider

## Using HasMCP UI

<img src="https://mintcdn.com/hasmcp/IeVTjQlEDEFCokWv/images/kb/provider-delete-confirm.png?fit=max&auto=format&n=IeVTjQlEDEFCokWv&q=85&s=238ca67a9011e082ebea1b154b8aa009" alt="Delete Provider Confirmation Modal" width="2560" height="1440" data-path="images/kb/provider-delete-confirm.png" />

To delete a provider through the management dashboard:

1. Navigate to the detail view of the **Provider**.
2. Locate and click on the **Delete** button.
3. A confirmation modal will appear advising you that all associated tools and connections will be lost. Click **Confirm** to permanently delete the mapping.

## Using REST API

If an external integration is aggressively deprecated and completely removed from your workflow, you can cleanly strike the provider's existence from your workspace using the deletion endpoint.

### The Endpoint Route

**`DELETE /providers/{id}`**

### Deleting via API Request

Using the 11-character `id` of the provider in question, make an authenticated call:

```bash theme={null}
curl -X DELETE https://app.hasmcp.com/api/v1/providers/kSuB9Gf6aD4 \
 -H "Authorization: Bearer YOUR_TOKEN"
```

A return code of `204 No Content` confirms successful execution.

> **Important Consequence:** Initiating this DELETE action on a provider recursively breaks and removes any `ProviderResource`, `ProviderPrompt`, and `ProviderTool` instances intimately linked to it, effectively cutting those lifelines to any connected MCP Servers traversing them.
