                                             remove-obsolete-metrics-processor
                                             tpool)
             obsolete-paths (->> processed-data
-                                (get-paths-from-paths-rollups)
+                                (get-paths-from-paths-rollups (first rollups))
                                 (filter #(:leaf (get @paths-info %)))
-                                (distinct)
                                 (sort))]
         (process-paths tenant obsolete-paths pstore options
                        remove-obsolete-paths-processor)))


(defn- get-paths-from-paths-rollups
  "Get paths from a paths-rollups list."
  [paths-rollups]
  (->> paths-rollups
       (map first)))

(defn- dry-mode-warn

          obsolete-paths (->> futures
                              (process-futures)
                              (remove nil?)
                              (get-paths-from-paths-rollups rollup)
                              (sort))
          _ (clog/info (str "Found obsolete metrics on "
                            (count obsolete-paths) " paths"))
