If group_data only has the Ungrouped group in it and no other groups, this will delete it.

Might be too onerous - can check whether it has any users in it or not?