Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-08-2006, 09:09 AM   #1
Registered: Apr 2006
Posts: 31

Rep: Reputation: 15
FTP Question


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!
Old 06-08-2006, 09:39 AM   #2
LQ Newbie
Registered: Mar 2006
Location: Montréal, Québec
Distribution: Kubuntu
Posts: 22

Rep: Reputation: 15
mdel * or mdelete * should work
Old 06-08-2006, 09:43 AM   #3
Registered: Jun 2006
Location: UK
Distribution: Ubuntu, Mandriva, Redhat and Fedora
Posts: 118

Rep: Reputation: 15
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!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp question gubak Linux - Networking 2 08-17-2004 06:13 AM
ftp question WorldBuilder Linux - Networking 5 05-13-2003 08:21 AM
Question about ftp Drogo Linux - Software 2 10-10-2002 11:54 PM
A question about wu-ftp yixudong Linux - General 1 09-22-2002 08:50 PM
FTP Question ! fin Linux - Newbie 2 04-13-2002 12:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration