So, yeah, I googled a bit and it looks like your problem table should be called xf_user_group_relation, you could select the id of the broken group, then execute the delete statement.
mysqldump can be used to back up any tables you want to fuck around with beforehand.
#willworkfor2drightwingwaifus