Removes a Sitecore role.
Remove-Role [-Identity] <AccountIdentity>
Remove-Role -Instance <Role>
The Remove-Role command removes a Sitecore role.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Role name including domain. If no domain is specified - 'sitecore' will be used as the default value
| Aliases | |
|---|---|
| Required? | true |
| Position? | 1 |
| Default Value | |
| Accept Pipeline Input? | true (ByValue) |
| Accept Wildcard Characters? | false |
Role instance like that returned by the Get-Role command.
| Aliases | |
|---|---|
| Required? | true |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | true (ByValue) |
| Accept Wildcard Characters? | false |
The input type is the type of the objects that you can pipe to the cmdlet.
- Sitecore.Security.Accounts.Role
The output type is the type of the objects that the cmdlet emits.
- None
Help Author: Adam Najmanowicz, Michael West
PS master:\> Remove-Role -Identity Michael