Remove-MsolContact

Removes a contact from Azure Active Directory.

Syntax

Remove-MsolContact [-Force] -ObjectId <Guid> [-TenantId <Guid>] [<CommonParameters>]

Description

The Remove-MsolContact cmdlet deletes a contact from Azure Active Directory.

Examples

Example 1: Remove a contact

PS C:\> Remove-MsolContact -ObjectId 40c4ca1a-4e15-40ad-b0bd-abeca4bcafcd -Force
This command removes a contact from the Azure Active Directory.

Parameters

-Force

Indicates that this cmdlet does not prompt you for confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False

-ObjectId

Specifies the unique ID of the contact to remove.

Type:Guid
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)

-TenantId

Specifies the unique ID of the tenant on which to perform the operation.
The default value is the tenant of the current user.
This parameter applies only to partner users.

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