How to delete iPhone history?

When you press the little search bar at the top right corner

You have to go through settings and delete the cookies and history that's how but apple can see what you have been on still

Settings-> safari-> clear search history and also clear cookies

Settings > scroll down to Safari > tap "Clear History" and "Clear Cookies and Data". Your search bar should be clear of searches. Browsing history, cookies, and the cache will also be cleared.