[emacs-berlin] Delete an entry from a list of orgmode tasks

jman emacs-berlin at city17.xyz
Fri Aug 14 14:25:03 UTC 2026



"Dr. Michael Hailer" <dr.hailer at proton.me> writes:

> (defun my/org-delete-subtree ()
>   "Delete the current Org subtree without adding it to the kill ring."
>   (interactive)
>   (org-back-to-heading t)
>   (when (yes-or-no-p
>          (format "Subtree \"%s\" wirklich löschen? "
>                  (org-get-heading t t t t)))
>     (let ((beg (point))
>           (end (save-excursion
>                  (org-end-of-subtree t t))))
>       (delete-region beg end))))


thank you for the snippet! There's a little bit to unpack for me but it looks like exactly what I 
need :)

VG


More information about the emacs-berlin mailing list