Removes a role from the data source for the configured applicationName.

Namespace:  EPiServer.Security
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public override bool DeleteRole(
	string roleName,
	bool throwOnPopulatedRole
)

Parameters

roleName
Type: System..::.String
The name of the role to delete.
throwOnPopulatedRole
Type: System..::.Boolean
If true, throw an exception if roleName has one or more members and do not delete roleName.

Return Value

true if the role was successfully deleted; otherwise, false.

See Also