Flags API reference

Flags API · Environments

delete/v1/workspaces/{workspace_id}/projects/{project_id}/environments/{environment_id}Auth

Delete an environment

Deletes the environment with its values in every config, and its SDK keys. A project keeps at least one environment. Needs `flags.project.manage`.

Path parameters

environment_id*string · uuid

Id of the environment.

project_id*string · uuid

Id of the project.

workspace_id*string · uuid

Id of the workspace.

Query parameters

notestring

A change note (at most 500 characters), saved on the history entry. Environments with `require_note` refuse value writes without one.

Response · 204

Deleted.

Example

Request

DELETE https://api.flags.productcraft.co/v1/workspaces/{workspace_id}/projects/{project_id}/environments/{environment_id}
Authorization: Bearer YOUR_TOKEN