This is a quick post.
Working on a project, I just wondered if I could delete files in terminal so that they moved to Trash so that I could recover them. I am on Mac btw.
It turns out that you can install a utility with Homebrew for just that functionality.
$> brew install trash
$> trash file_to_delete.txt
It is that simple.