Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-10-2006, 03:59 PM   #1
Registered: Nov 2003
Posts: 70

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

Last edited by Zombie13; 03-10-2006 at 04:01 PM.
Old 03-10-2006, 04:15 PM   #2
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

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

Old 03-10-2006, 10:23 PM   #3
LQ Newbie
Registered: Feb 2006
Posts: 9

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


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
Get Directories with Command Line FTP? BLazeD Linux - Newbie 2 09-09-2004 02:47 AM
share directories from command line tarheel92x Linux - Networking 1 09-07-2004 09:09 PM
delete a group with command line feetyouwell Linux - Software 1 01-27-2004 09:49 AM
How may I list only the directories in command line? geraldomanaus Linux - Newbie 5 03-20-2003 12:40 PM
Cant delete directories/files skopje909 Linux - General 2 11-07-2001 05:59 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:57 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