Previous: Single or Numbered Backups, Up: Backing Up Files [Index]
To prevent excessive consumption of disk space, Emacs can delete numbered backup versions automatically. Generally Emacs keeps the first few backups and the latest few backups, deleting any in between. This happens every time a new backup is made.
kept-old-versions
—a variablethe number of oldest (lowest-numbered) backups to keep (default 2)
kept-new-version
—a variablethe number of newest (highest-numbered) ones to keep (default 2)
delete-old-versions
if t, Emacs deletes the excess backup files silently. If nil, the default, Emacs asks you whether it should delete the excess backup versions. If any other value, Emacs never automatically deletes backups.
can be used to delete old versions.