get the correct tagGroupId to delete