   }
 
   public func deleteDatabase() {
+    guard LiveStreamService.getAppInstance() != nil else { return }
     LiveStreamService.firebaseApp()?.delete({ _ in })
   }
 

  }

  private static func firebaseApp() -> FIRApp? {
    guard let app = FIRApp(named: Secrets.Firebase.Huzza.Production.appName) else {
      self.start()
      return FIRApp(named: Secrets.Firebase.Huzza.Production.appName)
    }

    return app

    guard let app = self.firebaseApp() else { return nil }
    return FIRAuth(app: app)
  }

  private static func getAppInstance() -> FIRApp? {
    return FIRApp(named: Secrets.Firebase.Huzza.Production.appName)
  }
}
