dired-clean-up-after-deletion
dired-clean-up-after-deletion is a compiled Lisp function in `dired.el
'.
(dired-clean-up-after-deletion FN)
Clean up after a deleted file or directory FN.
Removes any expanded subdirectory of deleted directory.
If `dired-x' is loaded and `dired-clean-up-buffers-too' is non-nil,
also offers to kill buffers visiting deleted files and directories.