Remove-​Azure​Rm​Container​Registry

Removes a container registry.

Syntax

Remove-AzureRmContainerRegistry
      [-ResourceGroupName] <String>
      [-Name] <String>
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]
Remove-AzureRmContainerRegistry
      -Registry <PSContainerRegistry>
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Remove-AzureRmContainerRegistry cmdlet removes a container registry.

Examples

Example 1: Remove a specified container registry

PS C:\>Remove-AzureRmContainerRegistry -ResourceGroupName "MyResourceGroup" -Name "MyRegistry"

This command removes the specified container registry.

Required Parameters

-Name

Container Registry Name.

Type:String
Aliases:ContainerRegistryName, RegistryName, ResourceName
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Registry

Container Registry Object.

Type:PSContainerRegistry
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ResourceGroupName

Resource Group Name.

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

None