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.
3 Answers
-
my apologies… it would be like
var yourDb = Titanium.Database.open("yourDbName");
yourDb.remove();
-
"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();
-
Dosent work on iOS 6.1.4