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
/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
confirm | query | string | required | The server's name, exactly |
X-CSRF-Token | header | string | optional | 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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required