Consider a scenario where you need to delete a permission level from a SharePoint site using PowerShell.
The following PowerShell code deletes Contribute Permission level from a site:
The following PowerShell code deletes Contribute Permission level from a site:
$web = Get-SPWeb -Identity http://sp2010:90
$PermissionLevel=$web.RoleDefinitions
$PermissionLevel.Delete("Contribute")