Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Removing a database

I can't seem to find any documentation on removing a database. I see Titanium.Database.DB.remove, but I'm not sure how to use it.

Do I just add .remove to my database object? Is it .remove or .remove()?

If anyone can help me out here, it'd be great. I've been sitting in IRC all day and no one ever comes in there, so I'm hoping this will be more fruitful.

— asked June 22nd 2010 by Alexander Stone
  • database
  • databases
  • remove
0 Comments

3 Answers

  • my apologies… it would be like

    var yourDb = Titanium.Database.open("yourDbName");

    yourDb.remove();

    — answered June 23rd 2010 by Stephen Gilboy
    permalink
    0 Comments
  • "Is it .remove or .remove()?"

    if it's a method, and it is (http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Database.DB-object.html)

    you need the parenthesis

    Titanium.Database.DB.remove();

    — answered June 23rd 2010 by Stephen Gilboy
    permalink
    0 Comments
  • Dosent work on iOS 6.1.4

    — answered July 11th 2013 by Decaillot Julien
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.