Remove-LKGroup

Deletes an Entra ID group.

Syntax

# By name
Remove-LKGroup -Name <String> [-WhatIf] [-Confirm] [<CommonParameters>]

# By ID
Remove-LKGroup -GroupId <String> [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters

-Name

Attribute Value
Type String
Required Yes (ByName)

-GroupId

Attribute Value
Type String
Required Yes (ById)

-WhatIf

Shows what would happen without performing the action.

Attribute Value
Type SwitchParameter

-Confirm

Prompts for confirmation before performing the action.

Attribute Value
Type SwitchParameter

Outputs

Property Type Description
GroupId String Deleted group GUID
Name String Group name
Action String Deleted

Examples

Remove-LKGroup -Name 'SG-Intune-TestDevices'