Remove-EntraPolicy

Removes a policy.

Syntax

Remove-EntraPolicy
      -Id <String>
      [<CommonParameters>]

Description

The Remove-EntraPolicy cmdlet removes a policy from Microsoft Entra ID. Specify Id parameter to remove a specific policy.

Examples

Example 1: Remove a policy

Connect-Entra -Scopes 'Policy.Read.ApplicationConfiguration'
Remove-EntraPolicy -Id 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb'

This command removes the specified policy from Microsoft Entra ID.

  • -Id - specifies the ID of the policy you want to remove.

Parameters

-Id

The Id of the policy you want to remove.

Type:System.String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False