     (log/i "updating data using update method hendler")
     (.update document (document-updater))
     (log/i (str "new data after using putProperties: " (.getProperties document)))
+
+    (log/i (str "deleting document: " (.delete document)))
+
     ;; starting servers
     ;; (toast "starting HTTPD-WSD servers" :long)
     (start-servers httpd-wsd)

    )
)

(defn document-updater
  []
  (let [updater (proxy [Document$DocumentUpdater] []


    ;; setup the couchbase database
    (log/i "creating manager")
    ;; should change (*a) "this" in production, this is easy for REPL
    (def manager (Manager. (AndroidContext. (*a)) (.get (.getField Manager "DEFAULT_OPTIONS") nil)))
    (.setStorageType manager "ForestDB")
    (log/i "creteing database")
