            (search/find-refs :collection {:provider-id "PROV2"})))
       (is (d/refs-match?
            [gran4]
-           (search/find-refs :granule {:provider-id "PROV2"})))))
+           (search/find-refs :granule {:provider-id "PROV2"})))
+      ;; Variable on PROV1 is not found in search
+      (is (= 0 (:hits (variables/search {:name "Variable1"}))))
+      ;; Variable on PROV2 is still found in search
+      (is (= 1 (:hits (variables/search {:name "Variable2"}))))))
 
   (testing "delete non-existent provider"
     (let [{:keys [status errors content-type]} (ingest/delete-ingest-provider "NON_EXIST")]


      (is (= 2 (count (:refs (search/find-refs :collection {:provider-id "PROV1"})))))
      (is (= 3 (count (:refs (search/find-refs :granule {:provider-id "PROV1"})))))

      ;; ensure PROV1 group is indexed
      (is (= [(:concept-id access-group)]

      (are [concept]
        (mdb/concept-exists-in-mdb? (:concept-id concept) (:revision-id concept))
        coll3
        gran4
        variable2)

      ;; search on PROV1 finds nothing
      (is (d/refs-match?
