The defaultmenubar is a GROUP. Empty is not a group. So you could try: create a new group set the defaultmenubar to that empty group delete that empty group