Delete an MCP registration
Delete the server registration, policies, switches, hooks, connections, connect sessions, OAuth app, and stored OAuth registrations.
DELETE
/api/v1/mcp-integrations/:keyconst response = await fetch("https://api.smallworld.sh/api/v1/mcp-integrations/example-mcp", {
method: "DELETE",
headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();
Use your server-side apiKey. Replace the example IDs.
Path parameters#
keystringrequiredThe saved integration's command key, URL-encoded.
Responses#
Returns the result of this operation.
{
"deleted": true
}
More about this endpoint
Tool-call and enablement history remains. This does not delete the remote MCP server.