Remove-​Azure​RM​Tenant​Subscription

The Remove-AzureRMTenantSubscription cmdlet removes the current logged in user's specified subscription. There should not be any resources under the subscription to be removed

Syntax

Remove-AzureRMTenantSubscription
      [-InformationAction <ActionPreference>]
      [-InformationVariable <String>]
      [-PipelineVariable <String>]
      -TargetSubscriptionId <Guid>
      [<CommonParameters>]

Examples

Example 1:

Remove-AzureRMTenantSubscription -TargetSubscriptionId $TenantSubscriptionId

Description

-----------

The example removes the specified tenant subscription id.

Required Parameters

-TargetSubscriptionId

The current logged in user's Subscription Id to be removed

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

Optional Parameters

-InformationAction

Not SpecifiedThe following values are permitted for this object type.

Type:ActionPreference
Aliases:infa
Parameter Sets:SilentlyContinue, Stop, Continue, Inquire
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Not Specified

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PipelineVariable

Not Specified

Type:String
Aliases:pv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.AzureOperationResponse