devops stage branch delete

Delete the source code repository branch associated with a pipeline stage.

Removes the branch linked to the specified pipeline stage. Because branches are configured from right to left (a stage can have a branch only after the stage to its right does), removing a branch also removes the branches from all upstream stages (to the left) in the pipeline, keeping it in a valid state. The branch records in the repository are not deleted; only their association with the stages is removed. The stage 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
‑‑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 that contains the stage. Used to verify the pipeline is inactive before deleting.
‑‑stage‑idN/AType: Value
Required

ID of the pipeline stage whose branch you want to delete.
‑‑target‑org‑oType: Value
Required

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

Delete the branch associated with a pipeline stage: