In 5.1, I’ve found a bug where if you are using Group and then you collapse some of the Grouped nodes, a group is left over that cannot be deleted.
Group function:
Collapsed nodes:
Collapsed nodes retain group but it cannot be deleted:
Is there any way to delete all groups?