deleteDelete an environment
Deletes the environment and cascades to its deployments and routings. Returns 409 if linked execution history prevents deletion; nothing is deleted in that case. Deletion is idempotent: an absent ID in the active workspace also returns 204 with no response body.
Required service-token scope: environment:delete. End-user access is checked against workspace policies. Send a Bearer token and the X-Workspace-Id header.