Remove-​Azure​Rm​Iot​Hub

Deletes an IotHub.

Syntax

Remove-AzureRmIotHub
      [-ResourceGroupName] <String>
      [-Name] <String>
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

Deletes an IotHub.

Examples

Example 1 Remove an IotHub

PS C:\> Remove-AzureRmIotHub -ResourceGroupName "myresourcegroup" -Name "myiothub"

Removes an IotHub named "myiothub"

Required Parameters

-Name

Name of the IotHub

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Resource Group Name

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
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:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

Outputs

System.Object