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
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
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.