The database file I am trying to delete is in use when I try to delete it, so it's obviously still open. This is what I've done.
I have made my connection to the database (sqlite3 *handle) global. If this is the case then just before I delete the file I could close the connection (sqlite3_close(handle)) But this returns the error SQLITE_MISUSE. What conditions would incur such an error. This is obviously the reason why I can't close the database but why would I not be able to close it and receive SQLITE_MISUSE as a return value? -- View this message in context: http://sqlite.1065341.n5.nabble.com/Cannot-delete-a-Database-file-tp96397p96460.html Sent from the SQLite mailing list archive at Nabble.com. _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users