Krishna
3 years agoValued Contributor
Bulk Delete Security Group
The below code will delete the Security Group using extender rule.
Dim secGrp As List(Of Group) = Brapi.Security.Admin.GetGroups(si)
For Each Item As Group In secGrp
If Item.Name <> "Nobody" Or Item.Name <> "Administrators" Or Item.Name <>
"Everyone"
Brapi.Security.Admin.DeleteGroup(si,Item.Name)
End If
Next