How to hide the top admin bar at the frontend in WordPress?

There are two ways to do so:

1. GO to Admin panel –>> On the left side find the menu name USERS –>> CLICK ON YOUR PROFILE MENU.
Here you can see the Checkbox option to the heading ** Toolbar **.

Make uncheck for hiding. Click on Update profile button to save your changes. The button is on the last page of the site.

2. Add following code functions.php

add_filter('show_admin_bar', '__return_false');