Function: org-roam-erase-keyword

org-roam-erase-keyword is a natively compiled function defined in org-roam-utils.el.

Signature

(org-roam-erase-keyword KEYWORD)

Documentation

Erase the line where the KEYWORD is, setting line from the top of the file.

Source Code

;; Defined in /nix/store/60hpqw2cczhjli65ml5v1p4g0q2kbyhb-emacs-packages-deps/share/emacs/site-lisp/elpa/org-roam-20260425.1623/org-roam-utils.el
(defun org-roam-erase-keyword (keyword)
  "Erase the line where the KEYWORD is, setting line from the top of the file."
  (let ((case-fold-search t))
    (org-with-point-at 1
      (when (re-search-forward (concat "^#\\+" keyword ":") nil t)
        (beginning-of-line)
        (delete-region (point) (line-end-position))
        (delete-char 1)))))