Function: dired-flag-file-deletion

dired-flag-file-deletion is an interactive and byte-compiled function defined in dired.el.gz.

Signature

(dired-flag-file-deletion ARG &optional INTERACTIVE)

Documentation

In Dired, flag the current line's file for deletion.

If the region is active, flag all files in the region. Otherwise, with a prefix arg, flag files on the next ARG lines.

If on a subdir headerline, flag all its files except . and ... If the region is active in Transient Mark mode, flag all files in the active region.

View in manual

Probably introduced at or before Emacs version 24.3.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired-flag-file-deletion (arg &optional interactive)
  "In Dired, flag the current line's file for deletion.
If the region is active, flag all files in the region.
Otherwise, with a prefix arg, flag files on the next ARG lines.

If on a subdir headerline, flag all its files except `.' and `..'.
If the region is active in Transient Mark mode, flag all files
in the active region."
  (interactive (list current-prefix-arg t) dired-mode)
  (let ((dired-marker-char dired-del-marker))
    (dired-mark arg interactive)))