diff --git a/src/client/spark_api/Services/SparkApiConfig.cs b/src/client/spark_api/Services/SparkApiConfig.cs
deleted file mode 100644
index f58c7c47e..000000000
--- a/src/client/spark_api/Services/SparkApiConfig.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-#nullable enable
-namespace Spark.Api.Services;
-
-public class SparkApiConfig {
- public string? ConfigServer { get; set; }
- public string? User { get; set; }
- public string? Password { get; set; }
- public bool EnableAdmin { get; set; }
- public bool EnableOrders { get; set; }
- public bool EnablePosition { get; set; }
-}
diff --git a/src/client/spark_api/Services/SparkApiServices.cs b/src/client/spark_api/Services/SparkApiServices.cs
index ed7674769..c10ba1830 100644
--- a/src/client/spark_api/Services/SparkApiServices.cs
+++ b/src/client/spark_api/Services/SparkApiServices.cs
@@ -25,6 +25,11 @@ public static class SparkApiServices {
/// The to add the service to.
/// A reference to this instance after the operation has completed.
public static IServiceCollection AddSparkApi(this IServiceCollection services, IConfiguration configurationSection) {
+ if (!configurationSection.GetValue("IsEnabled", true)) {
+ // Make it obvious we aren't connecting to Sparkd.
+ Console.WriteLine("SparkApi services have been disabled");
+ return services;
+ }
if (!services.Any(s => s.ServiceType == typeof(SparkService))) {
/// initializes configuration and logging (this should be done
/// before any api-related services run).