Function: denote-org-capture-delete-empty-file

denote-org-capture-delete-empty-file is a natively compiled function defined in denote.el.

Signature

(denote-org-capture-delete-empty-file)

Documentation

Delete file if capture with denote-org-capture is aborted.

Source Code

;; Defined in /nix/store/yld6spsps5sfn9w4rjyhkvqlvdgsmvpq-emacs-packages-deps/share/emacs/site-lisp/elpa/denote-4.2.3/denote.el
(defun denote-org-capture-delete-empty-file ()
  "Delete file if capture with `denote-org-capture' is aborted."
  (when-let* ((file denote-last-path)
              ((denote--file-empty-p file)))
    (delete-file denote-last-path)))