Skip to main content

Remove-IdentityStore

The commandlet Remove-IdentityStore removes an identity store from Directory Manager.

Syntax

Remove-IdentityStore
[-IdentityStoreName] <String>
[-PassThru]
[-IdentityStoreId <Int32>]
[-SecurityToken <CustomClaimsPrincipal>]
[-Credential <PSCredential>]
[-WarningAction <ActionPreference>]
[-InformationAction <ActionPreference>]
[-WarningVariable <String>]
[-InformationVariable <String>]
[-PipelineVariable <String>]
[<CommonParameters>]

Required Parameter

  • IdentityStoreName

Example 1:

This example removes an identity store named DemoAzStore1.

Remove-IdentityStore -IdentityStoreName DemoAzStore1

Example 2:

This example removes DemoGStore1 and DemoGStore2 identity stores through the pipeline operator.

'DemoGStore1', 'DemoGStore2' | Remove-IdentityStore