Remove-EntraBetaPolicy
Removes a policy.
Syntax
Remove-EntraBetaPolicy
-Id <String>
[<CommonParameters>]
Description
The Remove-EntraBetaPolicy
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'
$policy = Get-EntraBetaPolicy | Where-Object {$_.DisplayName -eq 'Microsoft User Default Recommended Policy'}
Remove-EntraBetaPolicy -Id $policy.Id
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 |