Deleting a database

Issue #66 wontfix
Former user created an issue

Originally reported on Google Code with ID 66

It would be nice if there was a way to delete a SQLite database. Currently, I need to
do this outside of sqlite4java by manually deleting the database file. This means one
implementation for the JVM and another for Android. It would be nice if sqlite4java
did this so that I didn't need to have two different implementations in my own code.

Reported by JayBees on 2014-08-28 19:56:30

Comments (4)

  1. Former user Account Deleted
    This is a requested enhancement, not a defect.
    

    Reported by JayBees on 2014-08-28 19:57:04

  2. Former user Account Deleted
    Hi, 
    
    Thanks for your suggestion. Does SQLite have a function for deleting a database?
    
    I think file management is outside the scope of this library, which is a wrapper for
    SQLite functions + object-oriented design + performance improvements. 
    
    Igor
    

    Reported by sereda@almworks.com on 2014-08-29 04:40:14 - Labels added: Type-Enhancement - Labels removed: Type-Defect

  3. Former user Account Deleted
    SQLite does not have such a function. In Android, Context has a deleteDatabase method.
    On the desktop, you need to use File.delete or a similar method.
    

    Reported by JayBees on 2014-08-29 07:38:47

  4. Former user Account Deleted
    Thanks for the clarification! For the reasons I mentioned, we won't be implementing
    such method: file management is external to sqlite4java and SQLite.
    

    Reported by sereda@almworks.com on 2014-08-29 07:57:33 - Status changed: WontFix

  5. Log in to comment