Rewrite ‘eject remove’ command

ejectfinderterminal

I used the commands:

defaults write com.apple.finder ProhibitEject true and
sudo defaults write com.apple.finder ProhibitEject true (as stated on this page – Remove eject button from finder)

The command prevented the 'eject' button from working, however i want to undo this command…

Can someone rewrite the command to undo this, so that my eject button can work again?

Best Answer

To reverse any Boolean command, just type the inverse property, so...

true becomes false, one becomes zero

defaults write com.apple.finder ProhibitEject false

sudo defaults write com.apple.finder ProhibitEject false