API referenceSections

Remove a lost server, one whose agent never connected, or one whose agent was revoked, from the server list

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

DELETE /api/v1/tenants/{tid}/servers/{id}

Remove a lost server, one whose agent never connected, or one whose agent was revoked, from the server list (ADR 0149 D21, ADR 0164 D28, ADR 0166)

A server declared lost (Disaster recovery) with nothing of any tenant left on it: websites, kept deleted websites, databases, mail domains, DNS zones, caches, unfinished tasks (SERVER_NOT_EMPTY names them); audit server.lost_removed. Or a server whose agent enrolled but never connected (agent_last_seen_at null): its agent is revoked in the same step (a late connection is refused), its queued tasks fail with SERVER_REMOVED, and nothing else may be on it; audit server.never_joined_removed. Or a server whose agent connected once and was revoked since (R22.3, ADR 0166): same rules as a server that never joined (nothing else may be on it, queued tasks fail with SERVER_REMOVED); audit server.revoked_removed. Its name is typed in confirm (SERVER_REMOVE_CONFIRM). Any other server (its agent still trusted): SERVER_NOT_LOST. The record stays for the tasks and backups that name it.

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
confirmquerystringrequired

The server's name, exactly

X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Responses

204 Removed from the list

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required