How can I remove the eject button from my menubar when cmd-drag won't work?
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