diff --git a/src/core/database.c b/src/core/database.c
index 7ad9dae..0bf9c90 100644
--- a/src/core/database.c
+++ b/src/core/database.c
@@ -1479,3 +1479,7 @@ int GetAllEntriesForParameter(db_hash_t hash, kv_vector_t *kvv)
     return result;
 }
 
+void DATABASE_force_reset_file()
+{
+    schedule_factory_reset_init = true;
+}
diff --git a/src/core/database.h b/src/core/database.h
index c88cf3a..376aa7a 100644
--- a/src/core/database.h
+++ b/src/core/database.h
@@ -67,5 +67,6 @@ void DATABASE_Dump(void);
 int DATABASE_ReadDataModelInstanceNumbers(bool remove_unknown_params);
 db_hash_t DATABASE_GetMigratedHash(db_hash_t hash);
 
+void DATABASE_force_reset_file();
 #endif
 
