ldapdeletemachine: 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/sbin/ldapdeletemachine - from package: ldapscripts

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