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‑version | N/A | Type: Value Override the api version used for api requests made by this command |
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑pipeline‑id | N/A | Type: Value Required ID of the pipeline that contains the stage. Used to verify the pipeline is inactive before deleting. |
‑‑stage‑id | N/A | Type: Value Required ID of the pipeline stage whose branch you want to delete. |
‑‑target‑org | ‑o | Type: 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: