Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/azdo_help_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,25 @@ Create a variable group
-v, --variable strings Seed non-secret variables using key=value[;readOnly=true|false]
```

#### `azdo pipelines variable-group delete [ORGANIZATION/]PROJECT/GROUP [flags]`

Delete a variable group from a project

```
--all Remove the variable group from every assigned project
-q, --jq expression Filter JSON output using a jq expression
--json fields[=*] Output JSON with the specified fields. Prefix a field with '-' to exclude it.
--project-reference strings Additional project names or IDs to remove the group from (repeatable, comma-separated)
-t, --template string Format JSON output using a Go template; see "azdo help formatting"
-y, --yes Skip the confirmation prompt.
```

Aliases

```
rm, del, d
```

#### `azdo pipelines variable-group list [ORGANIZATION/]PROJECT [flags]`

List variable groups
Expand Down
1 change: 1 addition & 0 deletions docs/azdo_pipelines_variable-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Manage Azure DevOps variable groups
### Available commands

* [azdo pipelines variable-group create](./azdo_pipelines_variable-group_create.md)
* [azdo pipelines variable-group delete](./azdo_pipelines_variable-group_delete.md)
* [azdo pipelines variable-group list](./azdo_pipelines_variable-group_list.md)
* [azdo pipelines variable-group variable](./azdo_pipelines_variable-group_variable.md)

Expand Down
67 changes: 67 additions & 0 deletions docs/azdo_pipelines_variable-group_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
## Command `azdo pipelines variable-group delete`

```
azdo pipelines variable-group delete [ORGANIZATION/]PROJECT/GROUP [flags]
```

Delete a variable group from a project using its numeric ID or name. The command prompts
for confirmation unless --yes is supplied.


### Options


* `--all`

Remove the variable group from every assigned project

* `-q`, `--jq` `expression`

Filter JSON output using a jq expression

* `--json` `fields`

Output JSON with the specified fields. Prefix a field with '-' to exclude it.

* `--project-reference` `strings`

Additional project names or IDs to remove the group from (repeatable, comma-separated)

* `-t`, `--template` `string`

Format JSON output using a Go template; see "azdo help formatting"

* `-y`, `--yes`

Skip the confirmation prompt.


### ALIASES

- `rm`
- `del`
- `d`

### JSON Fields

`deleted`, `groupId`

### Examples

```bash
# Delete a variable group by ID in the default organization
azdo pipelines variable-group delete MyProject/123 --yes

# Delete a variable group by name in a specific organization
azdo pipelines variable-group delete 'myorg/MyProject/Shared Config'

# Remove a shared group from two additional projects
azdo pipelines variable-group delete MyProject/SharedConfig --project-reference ProjectB --project-reference ProjectC

# Remove a group from every project assignment
azdo pipelines variable-group delete MyProject/SharedConfig --all --yes
```

### See also

* [azdo pipelines variable-group](./azdo_pipelines_variable-group.md)
Loading
Loading