Online Help > PowerShell Scripting

Remove-RDMRole

SYNOPSIS

Delete an existing role.

 

SYNTAX

Remove-RDMRole -Force [Force] <SwitchParameter> -ID [ID] <Guid> [<CommonParameters>]

 

DESCRIPTION

You will be prompted to confirm the delete.

 

PARAMETERS

  -Force <SwitchParameter>

Forces removal of the role without confirmation by the user. Optional.

 

  -ID <Guid>

(Required) Specifies the GUID of the role to be deleted from.

 

Must be a valid GUID, in the form {00000000-0000-0000-0000-000000000000}.

 

  <CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer and OutVariable.For more information, type, "get-help about_commonparameters".

 

NOTES

For more information, type "Get-Help Remove-RDMRole -detailed". For technical information, type "Get-Help Remove-RDMRole -full".

 

EXAMPLE 1

PS C:\> $list = Get-RDMRole; Remove-RDMRole $list[1].ID

 

Retrieves the list of available sessions, deletes role at index 1.

 

EXAMPLE 2

PS C:\> Remove-RDMRole "{00000000-0000-0000-0000-000000000000}"

 

Delete session with ID = "{00000000-0000-0000-0000-000000000000}".

 

EXAMPLE 3

PS C:\> Remove-RDMRole -ID "{00000000-0000-0000-0000-000000000000}" -Force

 

Force delete of the role with ID = "{00000000-0000-0000-0000-000000000000}".

 

RELATED LINKS

Get-RDMRole

New-RDMRole

Set-RDMRole

Set-RDMRoleProperty