LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need to delete directories with files using command line FTP (http://www.linuxquestions.org/questions/linux-software-2/need-to-delete-directories-with-files-using-command-line-ftp-423625/)

Zombie13 03-10-2006 03:59 PM

Need to delete directories with files using command line FTP
 
I need to be able to delete a directory on my Linux server using the (apologies!) Windows XP command line FTP. When doing "rmdir directoryname" under the FTP utility, I receive "550 Directory not empty.". Fair enough, as the directory does indeed have files in it. I need an equivalent to a shell "rm -rf directoryname" under FTP. I guess this is something simple, but I've Googled and can't quite find the answer. Can anyone help?

tomdkat 03-10-2006 04:15 PM

delete is the FTP command to delete files. I don't know if delete supports masks or not. Do a Google search on "FTP delete mask" and see if you get any hits. If not, search on "FTP delete" and see if you can find out which parameters delete accepts.

Good luck!

Peace...

edudirectories 03-10-2006 10:23 PM

why not write it in perl and ftp using Net::FTP - this may make it easier to delete the folder.


All times are GMT -5. The time now is 06:08 AM.