trash-rm: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/trash-rm - from package: trash-cli

You may install the required package with command apt-get install {package}
Error in other languages:
trash-rm: bevel nie gevind nie
trash-rm: comandă negăsită
trash-rm: comando não encontrado
trash-rm: commande introuvable
trash-rm: command not found
trash-rm: käsku ei ole
trash-rm: không tìm thấy lệnh
trash-rm: komanda nerasta
trash-rm: Kommando nicht gefunden.
trash-rm: kommandot finns inte
trash-rm: komut yok
trash-rm: nie znaleziono polecenia
trash-rm: níor aimsíodh an t-ordú
trash-rm: no se encontró la orden
trash-rm: no s'ha trobat l'ordre
trash-rm: opdracht niet gevonden
trash-rm: parancs nem található
trash-rm: perintah tidak ditemukan
trash-rm: príkaz nenájdený
trash-rm: příkaz nenalezen
trash-rm: команда не найдена
trash-rm: командата не е открита
trash-rm: 命令找不到
trash-rm: コマンドが見つかりません