Consider using a promotion:
Admin CP -> Users -> User Group Promotions
This criteria will allow you to at least move those users to a new group and thereby affect their permissions:
View attachment 21620
But it won't automatically delete them. That requires an addon. Maybe in the future there will be an option to mass prune by usergroup in which case you can target the promotion group.