Added clear data function

Added function clear all the data from local storage.