How to clear the local storage in the Emulator?

3 posts, 0 answers
  1. Ruud
    Ruud avatar
    51 posts
    Member since:
    Oct 2012

    Posted 08 May 2015 Link to this post


    I am developing a hybrid app with the Windows Client Appbuilder. I use the emulator provided by the appbuilder to debug etc. I know it is using the WebSql db. I can delete content from the tables, however, I now need to delete the complete db all together for development purposes. In Chrome you can do that (deleting sqlite db's) by deleting the local storage (chrome://settings/cookies in the address bar); can this be done in the emulator as well?

    Thanks in advance!


  2. Zdravko
    Zdravko avatar
    657 posts

    Posted 13 May 2015 Link to this post

    Hi Ruud,

    I suppose you are talking about the Simulator we provide as it is using WebSQL database instead the provided SQLite from the plugin. Notice that there are also native emulators provided as a feature and this is completely different.

    There are two ways of resetting your database in the Simulator. The first one is to delete the cache of the Simulator right before running the app in it. To do this remove  %localappdata%\Telerik\BlackDragon\Cache\WebBrowserPackage-2015.2.511.2\WebBrowserCache\databases folder or any of the parent folders.

    The second one is to delete your database from the code and then initialize it again.

    I hope I have been of assistance.


    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

  3. Ruud
    Ruud avatar
    51 posts
    Member since:
    Oct 2012

    Posted 16 May 2015 Link to this post

    Hi Zdravko,

    Thanks, found it!

Back to Top