Software Archive
Read-only legacy content
17061 Discussions

Clear local storage

Dan_K_
Beginner
714 Views

How do I clear local storage? I'm running 2366 on Mac OSx.

Restarting XDK doesn't do it; restart of OSx doesn't do it. 

Thanks.

0 Kudos
5 Replies
Amrita_C_Intel
Employee
714 Views

Hello,

Look at this link: https://software.intel.com/en-us/xdk/blog/remove-xdk-local-data

0 Kudos
PaulF_IntelCorp
Employee
714 Views

What "local storage" are you referring to?

0 Kudos
Dan_K_
Beginner
714 Views

Thanks, but this link "https://software.intel.com/en-us/xdk/blog/remove-xdk-local-data" is no help at all. 

First, it doesn't list the files that need to be deleted:
Apple OS X*
Under the ~/Library/Application\ Support/XDK directory, delete the following files and folders

And, secondly, there isn't an XDK directory in the ~/Library/Application\ Support directory. ??

--------------

Here's what I'm doing: I pull data from a MySQL database and create a local storage item --  localStorage.setItem("status", obj.status);

Later, I decide to change the name of local storage item to "customerStatus". The old "status" item is still in local storage memory. It doesn't go away when I restart XDK, or when I reboot OSx. 

I could add some code to get rid of it (localStorage.removeItem("status"); I was hoping the XDK would have a "clear local storage" feature hidden away somewhere.

Thanks.

 

0 Kudos
PaulF_IntelCorp
Employee
714 Views

I'm guessing that you are using the Emulate tab in the XDK to do this? Is that correct? The local storage in the Emulate tab is part of the XDK, but I am not aware of a way to clear it, since it is shared with the rest of the XDK tools, so doing so might have a negative impact on the the rest of the XDK.

I recommend you use the Debug tab for this level of debugging, it will allow you to debug on a real device and get real device behavior. The Emulate tab is useful for basic logical debugging, but does not represent a real device. See this debug overview page: https://software.intel.com/en-us/xdk/docs/intel-xdk-debug-and-test-overview

0 Kudos
Dan_K_
Beginner
714 Views

Yes, I was in the emulator. I should have figured that one out on my own. Thanks Paul.

0 Kudos
Reply