I have (setq trash-directory "~/.Trash") and (setq delete-by-moving-to-trash t) in .emacs to be able to have files moved to ~/.Trash via d and then x in dired-mode. (This is in macOS.)
But if I want to delete a file (= move to the trash) that already exists in ~/.Trash, then I get error file-already-exists: File already exists: /Users/<myuser>/.Trash/<myfile>.
How can I specify in .emacs to (force-)overwrite files in ~/.Trash if they already exist in ~/.Trash?
Alternatively, how can I get Dired d-then-x to create a ~1, ~2 etc. version in Trash, every time a new file of the same base-name is moved there?