How do I erase cookies and history on my iPhone 5?

how do i erase cookies and history on my iPhone 5

i got a security/locked message alert while using Safari which is a scam so i was told to reset my settings, clear cookies and clear history. how do i clear the cookies and history?
Re: how do i erase cookies and history on my iPhone 5

Welcome to iMore! To erase web site data on your iPhone follow these steps:
1. Open Safari and tap on the bookmark button at the bottom of the screen
71fce39461f0e2f458212c353bfc1d07.jpg

2. Tap "Clear"
344e0afade6c0910c61a7e299af73119.jpg

3. Tap on a time frame. To erase ALL data tap on "All Time"
c0126995996e659003171491555ae113.jpg

Original thread: https://forums.imore.com/threads/how-do-i-erase-cookies-and-history-on-my-iphone-5.348832/