hi mitch,
try this (inside a Context-implementation)

getDatabasePath("yourDatabaseName").delete();

bye
marcus





________________________________
Von: mitch <[email protected]>
An: Android Beginners <[email protected]>
Gesendet: Mittwoch, den 7. Januar 2009, 22:03:37 Uhr
Betreff: [android-beginners] Delete android database


Hiya,

Does anyone know if there is a way to remove an android database file
programmatically? I need to remove a lot of records (10,000+) and it
seems it would be quicker to remove the database and re-create from
scratch rather than deleting from the various tables (Which takes
about 20 seconds using triggers to force referential integrity).

Thanks in advance!
mitch


      
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to