Thread:Project:Support desk/spam users/reply (7)

Such a script already exists: Manual:removeUnusedAccounts.php. It also offered options to exclude certain user groups or users, which are younger than a certain age.