A more appropriate way of doing this, would be to use the following:

Go into the directory tree where you wish to start.

find . -name "filename.goes.here"|xargs rm -rf

This will execute the command "rm -rf" for each file that the "find" command returns.

I would highly suggest using SSH instead of telnet, for various reasons. A quick search on google will assist you in finding reasons why telnet is no longer used, and SSH has taken over.

Thanks