On an iPhone, tap the Book icon at the bottom ... To close tabs along with clearing history, toggle on 'Close All Tabs'. Finally, tap 'Clear History' at the bottom to erase your browsing history.
If you're keen on activating this feature on your iPhone, iPad ... confidently work on other tasks without the need to close your private tabs on Safari, as you won't have to worry about ...