Delete an environment

⚠️
Preview — this feature is being built; the design below is the spec.
DELETE https://app.syntic.ai/v1/environments/{environment_id}

Delete an environment and its built images. Refused while an agent or deployment references it; containers already running for sessions finish normally.

For how this fits into a full workflow, see Environments.

Headers

HeaderRequiredValue
AuthorizationYesBearer <key>: a private inference key (sk_live_...). See Authentication.
syntic-betaYes, while in previewagents-2026-11-01. Without it the call fails with 400 beta_required. See Versioning.

Path parameters

ParameterTypeDescription
environment_idstringThe environment id, starting with env_.

Response

200 OK, Content-Type: application/json

{
  "id": "env_01JC5B2D4F6H8K0M2P4R",
  "type": "environment_deleted"
}

Examples

curl -sS -X DELETE https://app.syntic.ai/v1/environments/env_01JC5B2D4F6H8K0M2P4R \
  -H "Authorization: Bearer $SYNTIC_API_KEY" \
  -H "syntic-beta: agents-2026-11-01"

Errors

Errors use the error envelope and carry a request_id. Codes specific to this operation:

StatustypecodeWhen
400invalid_request_errorbeta_requiredThe syntic-beta header is missing.
404not_found_errorenvironment_not_foundNo environment with that id in this workspace.
409conflict_errorenvironment_in_useAn agent or deployment still references it.
401authentication_errorinvalid_api_keyThe key is missing, unknown, revoked or expired.
429rate_limit_errorrate_limitedToo many requests; wait for Retry-After. See Rate-limit headers.
Was this page helpful?