Remove-PnPRoleDefinition

Remove a Role Definition from a site

Syntax

Remove-PnPRoleDefinition
      -Identity <RoleDefinitionPipeBind>
                              [-Force [<SwitchParameter>]]
                              [-Connection <SPOnlineConnection>]

Examples

------------------EXAMPLE 1------------------

Remove-PnPRoleDefinition -Identity MyRoleDefinition

Removes the specified Role Definition (Permission Level) from the current site

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Force

Do not ask for confirmation to delete the role definition

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Identity

The identity of the role definition, either a RoleDefinition object or a the name of roledefinition

Type:RoleDefinitionPipeBind
Position:0
Accept pipeline input:True
Accept wildcard characters:False