Avatar of funkimunky
funkimunky
 asked on

How do I delete non empty folders using sftp or ftp

I am using a dreamhost backup server but only have rssh access. This only gives me sftp, ctp, ftp, rsync.
I want to delete non empty folders from the server but I cannot figure out how to do this.
Every time I try I get the error folder not empty. I dont really know linux commands that well.
Server SoftwareLinux

Avatar of undefined
Last Comment
taym78

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
mifurman1947

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
taym78

Agreed, mifurman1947 is right use use rm -rf  PATH/name_of_folder.
But be very careful with this command as it can cause a lot of damage if you type something wrong.  For example, if you type rm -rf / as root, you will start deleting the whole system and have to reinstall linux.  And it will not ask if your sure (unless you use rm -ir which will ask about each file).
Just be sure you don't have any typos.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck