## Summary
The `emptyUserGroup.php` script allows emptying of a user group. It does not support creating log entries for these removals, which should be optionally supported.
## Background
- The `emptyUserGroup.php` maintenance script allows emptying a given user group
- This script needs to be used on WMF wikis to support {T393360}
-- That ticket specifies that log entries need to be created that explain why the removal occurred
- The maintenance script currently does not generate any `Special:Log` entries to indicate the removal
-- The script should optionally support this so that affected users can see why this removal occured
## Technical notes
- We probably want to implement the logging code in `EmptyUserGroup` because the logging code that exists in `SpecialUserRights` has extra features we don't need.
- `EmptyUserGroup` should then have options to specify if a log entry should be created, along with the performer and comment for that log entry
-- This should also probably be marked as a bot action for recent changes to avoid flooding it
## Acceptance criteria
- [ ] Update `emptyUserGroup.php` to support optionally creating log entries when removing the user groups from users