API referenceSections

Queue the removal of one website folder the panel has no record of; its name typed in confirm; provider only; audited server.site_folder_orphan_remove (R22, ADR 0105)

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

POST /api/v1/tenants/{tid}/servers/{id}/orphan-folders/remove may answer 202

Queue the removal of one website folder the panel has no record of; its name typed in confirm; provider only; audited server.site_folder_orphan_remove (R22, ADR 0105)

The panel checks again that it has no record (FOLDER_HAS_RECORD); the server checks that the folder is a real folder directly under the sites root (FOLDER_IS_LINK) and that IIS has no site or pool of that id (FOLDER_IN_IIS), then removes it without following any link inside it. The job's result is {site_id, path, removed}.

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

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

Request body

required

Content type: application/json

object
  • no other properties
  • site_id string required
  • confirm string required

    The folder's name (the site id), typed

Example
{
  "site_id": "string",
  "confirm": "string"
}

Responses

202 Removal queued

Content type: application/json

  • job_id string required
Example
{
  "job_id": "string"
}

default Error

Content type: application/json

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