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