Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
Posts: 5
Registered: ‎05-24-2011
My Device: Developer
My Carrier: Developer

HTML5 database tables not deleted on application uninstall

Hi,

 

I'm writing a WebWorks application that makes use of HTML5 db tables.

The problem is that when I uninstall the application, the content in the db tables remains when I reinstall the app.

 

Is there anyway to make sure I have a clean db after reinstalling an app?

 

Thanks,

 

James

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: HTML5 database tables not deleted on application uninstall

Is this on a Tablet or Smartphone?

 

I know that on the Smartphone you don't get a chance to clean up your DB. This goes for all applications on the device, not just WebWorks

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Contributor
Posts: 5
Registered: ‎05-24-2011
My Device: Developer
My Carrier: Developer

Re: HTML5 database tables not deleted on application uninstall

It's on the Smartphone.  Guess I'll have to see if there's some other way to clean up the DB...

Contributor
Posts: 22
Registered: ‎05-06-2011
My Device: torch 9800
My Carrier: at&t

Re: HTML5 database tables not deleted on application uninstall

Are you talking about HTML5 local storage? If so you have to delete each variable by itself or clear the entire storage which means other apps content too.

 

Here is how you remove a variable:

localStorage.removeItem('variable');

Highlighted
Developer
Posts: 163
Registered: ‎05-06-2011
My Device: Playbook
My Carrier: Not Specified

Re: HTML5 database tables not deleted on application uninstall

[ Edited ]

Hi,

 

In order to delete HTML5 localstorage completely for your app you could call the the function

 

localStorage.clear();

 

Thanks

Praveen