             [clojure.walk :as walk]
             [cmr.system-trace.http :as ch]
             [ring.util.codec :as codec]
-            [cmr.acl.core :as acl]
             [cmr.transmit.connection :as conn]
             [cmr.common.log :refer (debug info warn error)]))
+
+(def token-header
+  "echo-token")
 
 (defn get-concept
   "Retrieve the concept with the given concept and revision-id"

  (let [conn (config/context->app-connection context :metadata-db)
        request-url (str (conn/root-url conn) "/providers/" provider-id)]
    (client/delete request-url {:throw-exceptions false
                                :headers {acl/token-header (config/echo-system-token)}})))

(defn delete-provider
  "Delete the provider with the matching provider-id from the CMR metadata repo."

    (client/post request-url
                 {:body (format "{\"provider-id\": \"%s\"}" provider-id)
                  :content-type :json
                  :headers {token-header (config/echo-system-token)}
                  :throw-exceptions false})))

(defn create-provider
