function to clear item from local storage