Emacs: Delete Emacs Backup Files

By Xah Lee. Date: . Last updated: .

To delete all emacs backup files (filenames ending in tilde ~) in current dir:

  1. Alt+x dired.
  2. dired-flag-backup-files~】 → mark all backup files for deletion.
  3. dired-do-flagged-deletex】 → (execute) delete files flagged for deletion.

[see Emacs: File Manager, dired]

delete emacs backup files by bash

# delete all file whose name end in ~. All subdir too
find . -name "*~" -delete

[see Emacs: Run Shell in Emacs]

delete emacs backup files by PowerShell

# delete all file whose name end in ~. All subdir too
dir -Recurse -File -filter *~ | rm

Emacs: auto save, backup