diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp --- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp +++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp @@ -1729,6 +1729,12 @@ << sqlite3_errstr(backupResult); throw std::runtime_error(error_message.str()); } + + std::string removeDeviceSpecificDataSQL = + "DELETE FROM olm_persist_account;" + "DELETE FROM olm_persist_sessions;" + "DELETE FROM metadata;"; + executeQuery(backupDB, removeDeviceSpecificDataSQL); executeQuery(backupDB, "VACUUM;"); sqlite3_close(backupDB);