Home / Emacs / Dired
Move to trash instead of deleting.
(with-eval-after-load 'dired (setq delete-by-moving-to-trash t))