How to remove the eject button from the menubar when cmd-drag won’t work

ejecticonmenu bar

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?

Best Answer

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