Function: gnus-group-delete-articles

gnus-group-delete-articles is an interactive and byte-compiled function defined in gnus-group.el.gz.

Signature

(gnus-group-delete-articles GROUP &optional OLDP)

Documentation

Delete all articles in the current group.

If OLDP (the prefix), only delete articles that are "old", according to the expiry settings. Note that this will delete old not-expirable articles, too.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-group.el.gz
(defun gnus-group-delete-articles (group &optional oldp)
  "Delete all articles in the current group.
If OLDP (the prefix), only delete articles that are \"old\",
according to the expiry settings.  Note that this will delete old
not-expirable articles, too."
  (interactive (list (gnus-group-group-name) current-prefix-arg)
	       gnus-group-mode)
  (let ((articles (range-uncompress (gnus-active group))))
    (when (gnus-yes-or-no-p
	   (format "Do you really want to delete these %d articles forever? "
		   (length articles)))
      (gnus-request-expire-articles articles group
				    (if oldp
					nil
				      'force)))))