This method is a bit complicated but simple if you follow these step by step instructions carefully.
Hide the search bar by right clicking on the task bar and under search click on hidden.
This method is really recommended by advance users. Do this changes at your own risk and can’t be held responsible for any damages.
Press Win +R of your keyboard and type “regedit“.
Navigate to Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\
Now there double click on SearchboxTaskbarMode and change its value from 1 to 0.
That’s how its done. Let me know if you have any problems via comments.