LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-17-2015, 03:51 AM   #1
VijayB
LQ Newbie
 
Registered: Jun 2014
Posts: 21

Rep: Reputation: Disabled
Delete a Directory tree from SFTP Server


Hi Experts,

Is there a way that i can delete selected directory trees on sftp server. Directory is only getting removed if it is empty. I am able to sftp & scp on the server to transfer the files.

Please help here!

VijayB
 
Old 01-17-2015, 06:10 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Why don't you logon to server with ssh and delete directory by rm -fr /pathtodirectory.
 
Old 01-21-2015, 09:42 PM   #3
VijayB
LQ Newbie
 
Registered: Jun 2014
Posts: 21

Original Poster
Rep: Reputation: Disabled
I am not able to ssh on the server.
 
Old 01-21-2015, 10:37 PM   #4
greeder
Member
 
Registered: Sep 2014
Posts: 31

Rep: Reputation: Disabled
Which FTP client are you using?
 
Old 01-21-2015, 10:51 PM   #5
VijayB
LQ Newbie
 
Registered: Jun 2014
Posts: 21

Original Poster
Rep: Reputation: Disabled
Hi Greeder,

I don't want to use FTP Client.I require to do that from command Line.
Got the work around now. Used LFTP to do that.

Thanks.
 
  


Reply


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
How to delete a commit from git tree phyyu Linux - Software 1 11-11-2009 07:48 AM
Samba: protect write-enabled directory-tree for move or delete alexandrusa Linux - Software 3 03-05-2008 10:44 AM
Copying a single file into each directory of a directory tree mlapl1 Linux - Newbie 2 06-27-2007 11:18 PM
SFTP and users climbing the file tree adrenaline_NZ Linux - Networking 4 11-19-2004 12:22 AM
Help! How do you delete a directory tree? johnmcollier Linux - Security 0 10-24-2003 03:29 AM


All times are GMT -5. The time now is 10:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration