         (when show-stats?
           (let [mstore-stats (mstore/get-stats mstore)
                 pstore-stats (pstore/get-stats pstore)]
-            (show-stats (:processed mstore-stats)
+            (show-stats @stats-processed
                         (+ (:errors mstore-stats)
                            (:errors pstore-stats)))))))))
 

    (dry-mode-warn options)
    (process-paths tenant paths es-url options
                   (fn [pstore options tenant paths]
                     (pstore/delete pstore tenant false false paths))
                   "Removing paths" true)
    (catch Exception e

(defn- remove-metrics-path
  "List metrics for a path."
  [mstore options tenant rollup period path from to]
  (swap! stats-processed inc)
  (let [times (get-times mstore options tenant rollup period path from to)]
    (wlog/info (str "Removing metrics: "
                    "rollup: " rollup ", "
