LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-10-2006, 03:59 PM   #1
Zombie13
Member
 
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
tomdkat
Member
 
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!

Peace...
 
Old 03-10-2006, 10:23 PM   #3
edudirectories
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:04 AM.

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