Function: org-delete-property-globally
org-delete-property-globally is an interactive and byte-compiled
function defined in org.el.gz.
Signature
(org-delete-property-globally PROPERTY)
Documentation
Remove PROPERTY globally, from all entries.
This function ignores narrowing, if any.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-delete-property-globally (property)
"Remove PROPERTY globally, from all entries.
This function ignores narrowing, if any."
(interactive
(let* ((completion-ignore-case t)
(prop (completing-read
"Globally remove property: "
(mapcar #'list (org-buffer-property-keys)))))
(list prop)))
(org-with-wide-buffer
(goto-char (point-min))
(let ((count 0)
(re (org-re-property (concat (regexp-quote property) "\\+?") t t)))
(while (re-search-forward re nil t)
(when (org-entry-delete (point) property) (cl-incf count)))
(message "Property \"%s\" removed from %d entries" property count))))