Skip to main content

Remove-LXCARoleGroup

This cmdlet deletes a specific role group.

Note
  • You cannot delete role groups that have members (users).

  • You cannot delete the reserved role groups lxc-sysrdr and lxc-sysmgr.

  • You cannot pipe objects to this cmdlet.

Syntax

Add-LXCACabinetItem [-Connection LXCAConnection] 
-RoleGroupName String
[CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-RoleGroupName String
Specifies the name of the role group to be deleted.
CommonParameters
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.

Results

This cmdlet does not return an object.

Examples

The following example deletes a role group.

$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred

Remove-LXCARoleGroup -RoleGroupName $name

Disconnect-LXCA