Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Remove-EntraGroupLifecyclePolicy

Deletes a groupLifecyclePolicies object

Syntax

Default (Default)

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.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Id

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

System.String

Outputs

System.Object

Related Links


Feedback

Was this page helpful?