How to Manage History and Other Browsing Data on Your iPhone

Basic tips and instructions for getting rid of personal browsing data

Safari, Apple's default web browser for iOS and macOS devices, behaves like most browsers when it comes to storing private data on a device's hard drive. Items such as browsing history, cache, and cookies are saved on your iPhone while you surf the web. The information is stored to improve your browsing experience in a number of ways.

This tutorial applies to the Safari web browser on Apple iPhone devices.

iPhone History, Cache, and Cookies

Browser data stored on your iPhone includes history, cache, and cookies. When stored, the data delivers faster load times, automatically populates web forums, tailors advertisements, and provides records of your web searches. Here's an overview of the types of browser data that is stored on your iPhone:

  • Browsing history: This is a log of the web pages you visited. It's helpful when you want to return to those sites.
  • Cache: The cache is comprised of locally stored web page components such as images, used to speed up load times in future browsing sessions.
  • Autofill: This information includes form data such as your name, address, and credit card numbers.
  • Cookies: These bits of data are placed on your iPhone by most websites. Cookies store login information and provide a customized experience on subsequent visits.

While this data may be useful to store, it is also sensitive in nature. Whether it's the password for your Gmail account or the digits on your credit card, much of the data left behind at the end of your browsing session could be harmful in the wrong hands. In addition to the security risk, there are privacy issues to consider. That's why it's important to have a good understanding of what this data is comprised of and how it can be viewed and manipulated on your iPhone.

This tutorial defines each item in detail and walks you through the process of managing and deleting the respective data.

It is recommended that Safari be shut down before deleting private data components. For more information, learn how to close apps on the iPhone.

Clear Browsing History and Other Private Data

Follow these steps to clear your browsing history and other data on the iPhone.

  1. Open the Settings app, located on the iPhone home screen.

  2. Scroll down and select Safari.

  3. Scroll to the bottom and select Clear History and Website Data.

    If the link is blue, it means Safari stored browsing history and other data on the device. If the link is gray, there are no records or files to delete.

  4. Select Clear History and Data to confirm the action.

    This action also deletes cache, cookies, and other browsing-related data from the iPhone.

    iPhone screenshots showing how to delete Safari browsing history through the Settings app

Block All Cookies

Apple has taken a more proactive approach to cookies in iOS, allowing you to block all that originate from an advertiser or other third-party website by default. Follow these steps to block all cookies:

  1. Open the Settings app, located on the iPhone home screen.

  2. Scroll down and select Safari.

  3. Scroll down to the Privacy & Security section and turn on the Block All Cookies toggle switch.

    The "Block All Cookies" switch in Safari settings

Older versions of iOS provided several options for blocking cookies: Always Block, Allow from Current Website Only, Allow From Websites I Visit, or Always Allow.

Delete Data from Specific Websites

Up to this point, we have described how to delete all of Safari's saved browsing history, cache, cookies, and other data. These methods are perfect if your goal is to remove private data in one fell swoop. However, if you want to clear data saved by specific websites, Safari for iOS provides a way to do that.

  1. Open the Settings app, located on the iPhone home screen.

  2. Scroll down and select Safari, then scroll to the bottom and select Advanced > Website Data.

    Website Data in Advanced Safari settings for iPhone
  3. Select Edit in the upper-right corner.

  4. Select the red dash icon next to the websites whose data you would like to delete, then select Delete.

    Deleting website data on an iPhone
  5. Repeat this process until you are satisfied. When you are finished, select Done.