Question [Q] contacts messed up

I am not sure how this came about but now I

can't delete some groups
some contacts are not assigned and I can not edit them

What is the best way to mass manage my contacts ?