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'
Remove-EntraGroupLifecyclePolicy -GroupLifecyclePolicyId '1aaaaaa1-2bb2-3cc3-4dd4-5eeeeeeeeee5'

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