Edit

Share via


Remove-AzureADDomain

Removes a domain.

Syntax

Default (Default)

Remove-AzureADDomain
    -Name <String>
    [<CommonParameters>]

Description

The Remove-AzureADDomain cmdlet removes a domain from Azure Active Directory (AD).

Examples

Example 1: Remove a domain

PS C:\>Remove-AzureADDomain -Name Contoso.com

This command removes a domain.

Parameters

-Name

Specifies the name of the domain to remove.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Notes

See the migration guide for Remove-AzureADDomain to the Microsoft Graph PowerShell.