Remove instant search query from url

i wanted to remove instant search query from url.
can i?
URL should not be added in url bar after search
i want remove after # part


To do that you need to remove the urlSync from instantsearch. Be aware that this will prevent you from refreshing the page and getting back the search in the same state.

If you are using magento1, remove the following lines:

If you are using magento2, remove the following lines: