Function: org-roam-db-clear-file
org-roam-db-clear-file is a byte-compiled function defined in
org-roam-db.el.
Signature
(org-roam-db-clear-file &optional FILE)
Documentation
Remove any related links to the FILE.
This is equivalent to removing the node from the graph. If FILE is nil, clear the current buffer.
Source Code
;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-db.el
(defun org-roam-db-clear-file (&optional file)
"Remove any related links to the FILE.
This is equivalent to removing the node from the graph.
If FILE is nil, clear the current buffer."
(setq file (or file (buffer-file-name (buffer-base-buffer))))
(org-roam-db-query [:delete :from files
:where (= file $s1)]
file))