There’s no supported API for it but if it’s registered as a named connection you could access the NamedConnections dictionary directly and remove it that way. SQLite retains a persistent connection which you’ll need to unset when disposing the DB connection to dispose its internal persistent connection, e.g. something like:
if (OrmLiteConnectionFactory.NamedConnections
.TryRemove(sqliteDb, out var sqliteFactory))
{
using (sqliteFactory.CreateDbConnection())
{
sqliteFactory.AutoDisposeConnection = true;
}
}