Remove-EntraGroupLifecyclePolicy

Deletes a groupLifecyclePolicies object

Syntax

Remove-EntraGroupLifecyclePolicy
      -GroupLifecyclePolicyId <String>
      [<CommonParameters>]

Description

The Remove-EntraGroupLifecyclePolicy command deletes a groupLifecyclePolicies object in Microsoft Entra ID. Specify Id parameter deletes the groupLifecyclePolicies object.

Examples

Example 1: Remove a groupLifecyclePolicies

Connect-Entra -Scopes 'Directory.ReadWrite.All'
Get-EntraGroupLifecyclePolicy | Where-Object {$_.AlternateNotificationEmails -eq 'example@contoso.com'} | Remove-EntraGroupLifecyclePolicy

This example demonstrates how to delete the groupLifecyclePolicies object that has the specified ID. You can use Get-EntraGroupLifecyclePolicy to get Id details.

Parameters

-GroupLifecyclePolicyId

Specifies the ID of the groupLifecyclePolicies object that this cmdlet removes.

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

Inputs

System.String

Outputs

System.Object