Hoppa till innehållet

Delete a server

DELETE/v1/servers/{id}

TypeScript account.servers.delete(serverId)

Python account.servers.delete(server_id)

PHP $account->servers->delete($serverId)

Java account.servers().delete(serverId)

Key ak_… an account key

Removes the server with its keys, streams, messages, suppressions, not-tracked list and webhooks. Refused while messages of the server are still being delivered; try again once they have left. What the server sent stays counted on the account’s usage.

Parameters

  • idin pathstring (uuid)required

    The server id.

Responses

Errors

Every error answers error, the code, and message, a sentence for a person. A code that adds fields is shown in full below the table.

CodeStatusMeaning
unauthorized401The key is missing, malformed or revoked.
wrong_token_kind403The key is of the other kind: a server key (sk_) where an account key (ak_) is needed, or the reverse. The message names the kind the operation takes.
not_for_connections403A connected app called an operation that no tool of the MCP server calls. An API key can.
read_only_connection403A connected app may only read here: the account is read only through a connection, and a live server takes changes only if the person allowed them when connecting.
test_server_only403A connected app may create a secret, or do what cannot be undone, on a test server only.
not_found404No such server of this account.
server_reserved409This server sends Sendora’s own sign-in mail and cannot be renamed or removed.
server_in_flight409Messages of the server are still being delivered; try again once they have left.
  • WWW-Authenticateheader on 401"Bearer"

    Always Bearer: send the key as Authorization: Bearer <key>.