---
title: "Delete a host"
method: DELETE
path: "/projects/{projectId}/hosts/{hostId}"
tags: ["Hosts"]
---

# Delete a host

`DELETE /projects/{projectId}/hosts/{hostId}`

Permanently delete a host from the project. Pass `{ "force": true }` to delete a host that is still referenced (e.g. by an eval suite). Guest callers are denied (a write).

## Path parameters

- `projectId` string, required
- `hostId` string, required

## Request body

- object
  - `force` boolean — Delete even if the host is still referenced.

## Response `200`

The host was deleted.

- HostDeleted
  - `id` string, required
  - `deleted` true, required

## Other responses

- `400` — Malformed body or parameters.
- `401` — Missing, invalid, revoked, or orphaned key (`UNAUTHORIZED`) — or the **target MCP server** needs an OAuth grant (`OAUTH_REQUIRED`), which is a property of the server, not your key.
- `403` — Key is valid but not allowed to do this.
- `404` — Unknown project, server, or resource.
- `429` — Per-key rate limit exceeded (60 requests/minute sustained, bursts up to 10). Honor `Retry-After` and back off with jitter.
- `500` — Something failed on MCPJam's side.
- `502` — Could not connect to the target MCP server.

## Changes

- **2026-07-25** `8e393fd5825f` — 7 warning
  - added the new `CONFLICT` enum value to the `code` response property for the response status `400`
  - added the new `CONFLICT` enum value to the `code` response property for the response status `401`
  - added the new `CONFLICT` enum value to the `code` response property for the response status `403`
  - added the new `CONFLICT` enum value to the `code` response property for the response status `404`
  - …3 more
- **2026-06-26** `f311b5e01264` — 1 info
  - added optional request body
- **2026-06-19** `d596179f8034` — 1 breaking
  - removed the request body
- **2026-06-19** `7c57c30e451d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mcpjam/apis/mcpjam-api/changes/projects/:projectId/hosts/:hostId/delete.md)

---

[API](https://skmtc.dev/mcpjam/apis/mcpjam-api.md) · [All operations](https://skmtc.dev/mcpjam/apis/mcpjam-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mcpjam/mcpjam-api/revisions/eaee3e3581d2/schema)
