Environments

Delete Environment

Changed on

Delete a custom environment. All per-environment integration configuration overrides bound to it are removed as well. The built-in environments (production / staging) cannot be deleted, and org-scoped environments cannot be deleted from the workspace routes.

Requires Workspace Owner or Workspace Creator role.

Note: Environment APIs are available only with self-hosted Enterprise plans and cloud-hosted plans. Creating custom environments requires a plan that includes the custom-environments feature.

delete/api/v3/meta/workspaces/{workspaceId}/environments/{environmentId}

Request

Path parameters

workspaceIdstring required

Workspace ID

environmentIdstring required

Environment ID

Response

Environment deleted successfully

boolean required

Example response

true

Changes