Cmdlets for Azure Active Directory

Build 24.0.9060

Remove-AzureAD Cmdlet

Parameters   Output Objects  

Deletes Azure Active Directory data.

Syntax

Remove-AzureAD [parameters]

Remarks

The Remove-AzureAD cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Azure Active Directory data.

$conn = Connect-AzureAD -OAuthClientId 'MyApplicationId' -OAuthClientSecret 'MySecretKey' -CallbackURL 'http://localhost:33333'
Remove-AzureAD -Connection $conn -Table "DirectoryRoles" -Id "Jq74mCczmFXk1tC10GB"
The Where parameter can also be used to specify the primary key:
Remove-AzureAD -Connection $conn -Table "exTablePowershell;" -Where "Id = Jq74mCczmFXk1tC10GB"
The primary key can also be passed to the cmdlet along the pipeline:
Select-AzureAD -Connection $conn -Table DirectoryRoles -Where "Id = 'Jq74mCczmFXk1tC10GBs'" | Remove-AzureAD

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060