How can I remove the eject button from my menubar when cmd-drag won't work? I have an eject icon in my menubar that I cannot remove by command-dragging it out of the bar. Is there a command I can run in Terminal?
I have realized what the problem was

If you use Bartender.app, if the app is active, you cannot drag items out of the menubar. You need to quit Bartender first