Remotehost Docs
API ReferenceEnvironments

Delete an environment

Deprecated

DELETE
/orgs/{orgId}/projects/{projectId}/environments/{environmentId}

Deprecated: use the same operation under /environment-templates. Refused with 409 while any workspace names it, or, for the project's default, while workspaces that name no environment follow it: move them first. Sandboxes do not hold it: if any still boot from it, it is deleted for everything else (no longer listed, readable, editable, the default or usable for anything new) and kept only for them, so each keeps waking under its last egress policy, environment variables and setup script; it is released when the last of them is deleted. Requires environments.manage.

Authorization

bearerAuth
AuthorizationBearer <token>

A RemoteHost API key (rh_sk_...) or a user session token.

In: header

Path Parameters

orgId*string
projectId*string
environmentId*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/orgs/string/projects/string/environments/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "deleted": true,  "keptForSandboxes": true,  "egressPropagation": {    "applied": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      }    ],    "failed": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string",        "error": "string",        "stopped": true      }    ],    "notRunning": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      }    ],    "listError": "string"  }}