---
title: "Delete an MCP server instance and associated connected accounts"
method: DELETE
path: "/api/v3.1/mcp/servers/{serverId}/instances/{instanceId}"
tags: ["MCP", "Servers", "Instances"]
---

# Delete an MCP server instance and associated connected accounts

`DELETE /api/v3.1/mcp/servers/{serverId}/instances/{instanceId}`

Removes a user instance from the MCP server and deletes all connected accounts for that user that are associated with the auth configurations of this specific MCP server. Connected accounts for other auth configurations are not affected.

## Path parameters

- `serverId` string, required — UUID of the MCP server
- `instanceId` string, required — The user ID to remove from this server

## Response `200`

Successfully deleted MCP server instance and associated connected accounts.

- object
  - `message` string, required
  - `deleted_connected_accounts` number, required

## Other responses

- `400` — Bad request. The request parameters may be invalid.
- `401` — Unauthorized. Authentication is required or the provided credentials are invalid.
- `404` — MCP server or instance not found.
- `500` — Internal server error. An unexpected error occurred while processing the request.

---

[API](https://skmtc.net/composiohq/apis/composio-platform-api-v3-1.md) · [All operations](https://skmtc.net/composiohq/apis/composio-platform-api-v3-1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/composiohq/composio-platform-api-v3-1/revisions/4239836857f8/schema)
