If you want to retain access to search from the taskbar, you can show only the button using these steps:
To remove the search box from taskbar, use these steps:
If you don't use the search box, you can disable it, or show only a button to access the experience, which only takes up one pin slot. The search box takes up seven slots on the taskbar. Although this is a useful feature, the box takes a considerable amount of space. The Windows 10 taskbar integrates a search box that you can use to find files, launch apps, and get answers to common questions without having to open the web browser. If you want to keep the taskbar organized or trying to fit more apps, these instructions will help you customize the experience.
VPN Deals: Lifetime license for $16, monthly plans at $1 & more How to organize taskbar space on Windows 10