Up: Dired [Top][Contents]
Move to trash instead of deleting.
(with-eval-after-load 'dired (setq delete-by-moving-to-trash t))