Deleting a Dedicated Group
You can delete an empty dedicated group you created and that you no longer need.
A dedicated group can be deleted only if no VM or Net is in the dedicated group. Otherwise, you need to force its deletion.
If you force the deletion of a dedicated group: |
Deleting a Dedicated Group Using OSC CLI
This feature is currently in beta. |
The DeleteDedicatedGroup command deletes a specified dedicated group of virtual machines (VMs).
A dedicated group can be deleted only if no VM or Net is in the dedicated group. Otherwise, you need to force the deletion. |
$ osc-cli api DeleteDedicatedGroup --profile "default" \
--DedicatedGroupId "ded-12345678"
$ osc-cli api DeleteDedicatedGroup --profile "default" \
--DedicatedGroupId "ded-12345678" \
--Force True
This command contains the following attributes that you need to specify:
-
DedicatedGroupId
: The ID of the dedicated group you want to delete. -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action. -
Force
: (optional) If true, forces the deletion of the dedicated group and all its dependencies.
The DeleteDedicatedGroup command returns the following elements:
-
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Related Pages
Corresponding API Method