Remove-WebSitesSubscription

Remove-WebSitesSubscription

Removes a tenant subscription.

Syntax

Parameter Set: Default
Remove-WebSitesSubscription -SubscriptionId <String> [-Force] [-PipelineVariable <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]


 

Detailed Description

The Remove-WebSitesSubscription cmdlet removes a tenant subscription.

Parameters

-Force

Removes the subscription without prompting for confirmation.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-PipelineVariable<String>

Specifies a variable to be used with the pipeline operator.

 

Aliases

pv

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-SubscriptionId<String>

Specifies an ID for a subscription.

 

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-Confirm

Prompts you for confirmation before executing the command.

 

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-WhatIf

Describes what would happen if you executed the command without actually executing the command.

 

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

Example 1: Remove a tenant subscription

This command removes the subscription with the ID Subscription01.

PS C:\> Remove-WebSitesSubscription -SubscriptionId "Subscription01"

 

Related topics

New-WebSitesSubscription

Get-WebSitesSubscription

Set-WebSitesSubscription