devops stage environment delete

Delete an environment from a DevOps Center pipeline stage.

Removes the specified environment from the pipeline stage. The environment must belong to an inactive pipeline.

Flag Name (Long)Flag Name (Short)Description
‑‑api‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑environment‑id‑eType: Value
Required

ID of the environment to delete.
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑pipeline‑idN/AType: Value
Required

ID of the pipeline. Used to verify the pipeline is inactive before deleting.
‑‑target‑org‑oType: Value
Required

Username or alias of the target org. Not required if the target-org configuration variable is already set.

Delete an environment: