Function: org-roam-tag-remove
org-roam-tag-remove is an interactive and natively compiled function
defined in org-roam-node.el.
Signature
(org-roam-tag-remove &optional TAGS)
Documentation
Remove TAGS from the node at point.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/60hpqw2cczhjli65ml5v1p4g0q2kbyhb-emacs-packages-deps/share/emacs/site-lisp/elpa/org-roam-20260425.1623/org-roam-node.el
(defun org-roam-tag-remove (&optional tags)
"Remove TAGS from the node at point."
(interactive)
(let ((node (org-roam-node-at-point 'assert)))
(save-excursion
(goto-char (org-roam-node-point node))
(if (= (org-outline-level) 0)
(let* ((current-tags (split-string (or (cadr (assoc "FILETAGS"
(org-collect-keywords '("filetags"))))
(user-error "No tag to remove"))
":" 'omit-nulls))
(tags (or tags (completing-read-multiple "Tag: " current-tags))))
(org-roam-set-keyword "filetags"
(org-make-tag-string (seq-difference current-tags tags #'string-equal))))
(let* ((current-tags (or (org-get-tags)
(user-error "No tag to remove")))
(tags (or tags (completing-read-multiple "Tag: " current-tags))))
(org-set-tags (seq-difference current-tags tags #'string-equal))))
tags)))