I'm having trouble deleting a file using C++ 'remove' in my sqlite project. All I'm trying to do is delete a database file. The problem is it won't delete.
I found the below solution which says that you just call query.close() to release the database file in sqlite but I'm just not sure how to do that? I have never used a query class in sqlite. Does anyone know how to call the query.clear() method?
Here's the link to the solution to the same problem I have - Releasing the Database in sqlite.
The other links to this never solve the issue.. They talk about garbage collection but don't explain how this is done.