                             {:db/id lembrando
                              :lembrando/due-date new-due-date
                              :lembrando/needs-repeat? needs-repeat?}]))))))
+
+(defn delete-lembrando [lembrando]
+  (let [txn [[:db.fn/retractEntity lembrando]]]
+    (sente/send!
+     [:db/ops [[:transact txn]]]
+     10000
+     (fn [resp]
+       (if (cb-success? resp)
+         (d/transact! conn txn)
+         (js/alert "Error tratando de apagar pergunta: "
+                   (pr-str resp)))))))
 
 (defn review []
   (let [[all due] (lembrandos)]

              [ui/flat-button
               {:label "Editar"
                :icon (icons/editor-mode-edit)
                :on-touch-tap #(set0! :review/editing? true)}]]]
            [:div
             [rui/flat-button
              {:label "Mostrar resposta"

            [relembra.reagent-hack :refer (synthetic-text-field)]
            [relembra.sente :as sente]
            [taoensso.sente :refer (cb-success?)]))

(enable-console-print!)

(defonce conn (let [conn (d/create-conn)]
                (d/transact! conn [{:db/id 0
