Virtualization - deleteVirtualGuest
Virtualization - deleteVirtualGuest
Description :
This command deletes a virtual guest.
To get the virtualEntityKey, use the getVirtualGuestKeyByServerName command. The virtualEntityKey contains spaces. Therefore, you need to enclose this key in double quotes each time you use it.
Return type : String
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
virtualEntityKey | String | Virtual guest key for the virtual guest you want to delete. |
Example
The following example shows how to delete a virtual guest. Note the use of double quotes around $VIRT_ENTITY_KEY.
Script
VIRTUAL_GUEST1_NAME="vm-w23-mar111"
VIRT_ENTITY_KEY=`blcli Virtualization getVirtualGuestKeyByServerName $VIRTUAL_GUEST1_NAME`
blcli Virtualization deleteVirtualGuest "$VIRT_ENTITY_KEY"
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*