I want to remove custom security group from sharepoint 2010. I created custom security group as follows:

SPGroup wcmGroup = currentWeb.SiteGroups[permissionName];
SPRoleDefinition customRoleDefinition = currentWeb.RoleDefinitions[permissionName];
SPRoleAssignment roleAssignment = new SPRoleAssignment(wcmGroup);

However, I don't know how to remove the groups. Thanks.,


Did you try this...

Delete a security group

In the header, click Admin.

In the left pane, under Management, click Security Groups.

On the Security groups page, select the check box next to the group that you want to delete,

and then click Delete.

Important: You cannot delete a group synchronized with your Active Directory service. To delete the group, use your local Active Directory management tools.

A dialog box appears asking if you are sure that you want to delete the group. After you click Yes, the dialog will show the deletion in process. Click Close when deletion is complete.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.