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
/api/v1/tenants/{tid}/servers/{id}/orphan-folders/remove may answer 202Queue 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
- no other properties
site_idstring requiredconfirmstring requiredThe folder's name (the site id), typed
Example
{
"site_id": "string",
"confirm": "string"
}Responses
202 Removal queued
Content type: application/json
job_idstring required
Example
{
"job_id": "string"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required