Deletes an Azure Container Instance (ACI) container group.
Remove-AzContainerGroup
-ResourceGroupName <String>
-Name <String>
[-Force]
[-AsJob]
[]
| Parameter | Type | Required | Description |
|---|---|---|---|
| -ResourceGroupName | String | Yes | Name of the resource group that contains the container group. |
| -Name | String | Yes | Name of the container group to remove. |
| -Force | SwitchParameter | No | Suppresses confirmation prompts. |
| -AsJob | SwitchParameter | No | Runs the command as a background job. |
| -WhatIf | SwitchParameter | No | Shows what would happen if the command runs. |
| -Confirm | SwitchParameter | No | Prompts for confirmation before executing. |
Deletes the container group myContainerGroup in the resource group myResourceGroup after confirming the action.
Remove-AzContainerGroup -ResourceGroupName "myResourceGroup" -Name "myContainerGroup"
Deletes the container group without prompting for confirmation.
Remove-AzContainerGroup -ResourceGroupName "myRG" -Name "myCG" -Force