User:SVG/Maintenance scripts/removeRedundantUserGroup.php

This maintenance script can be executed in commandline. It allows removing an user group from members of another group or just removing all members from this group. The actions will be logged in user rights log (Special:Log/rights). This script is general usable.

It could look like: