I believe you are referring on the top admin menu that appears on both backend and frontend. We can get rid of it using this code, however, this would also remove this on the top admin menu on the backend:
Not the solution I was expecting. I was looking for a hard coded solution that would allow hide the menu when the user is not logged in, as the menu is displayed to all users, I need it for backend user only. If you could point me in right direction that would help.