API: Clear Data

This code sample allows you to trigger the clearing of data that has been stored by the browser, including cache, cookies, and local storage.

Requires

Reference

View API Documentation View API Best Practices

Sample Code

Trigger via API Function Recommended Test Protocol
Clear Cache
  1. Visit a webpage that you can update the content of.
  2. Update the page with a change you can identify.
  3. Return to this page and tap 'Clear Cache'.
  4. Return to the webpage above. Cache should be cleared and new content shown.
Clear Cookies
  1. Login to any website below.
  2. Login to Facebook Login to Twitter Login to Google
  3. Navigate to a different site.
  4. Return to the website. You will remain logged in, or be remembered with a request to re-enter your password.
  5. Tap 'Clear Cookies'.
  6. Visit the website again and you will be logged out and/or no longer remembered.
  1. Enter and save an item below.
  2. Item Quantity
  3. Tap 'Refresh Page'. You should see the item you stored in the table to the left.
  4. Tap 'Clear Local Storage'.
  5. Tap 'Refresh Page'. You should see no longer see the item you stored in the table to the left.