LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FTP Question (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-question-452791/)

comptech520 06-08-2006 08:09 AM

FTP Question
 
Hello,

I am accessing my ftp backup server through Putty.

So I use the ftp <servername> command.

Is there a way for me to delete all of the files in 1 shot?

I have tried delete * and delete *.* but that didn't seem to work.

Thanks and have a nice day!

mat087 06-08-2006 08:39 AM

mdel * or mdelete * should work

penguintutor 06-08-2006 08:43 AM

ftp multiple delete - mdelete
 
You can delete multiple files using the mdelete (mdel) command.

so use
mdel *

You will probably be in interactive mode so you'll have to answer y to each entry. You can disable this by entering <i>prompt</i> to turn off interactive mode.

I think that the mdel command is an extension of the original ftp protocol so it may not work with all servers.

It can delete subdirectories and files as well, so be careful, especially if you use non-interactive mode!


All times are GMT -5. The time now is 04:40 PM.