• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Command to delete a folder structure via SSH?

#1
Hi,

I wonder what command I should use to delete a folder structure via SSH (I envision it would go faster that way)? I have tried various command but I has not worked for me.

As of right now I delete the folders via Filezilla and that takes really long time.
 

CTXMedia

Formerly CyclingTribe
#2
Assuming you are on Linux you'll need to recursively delete using the "-r" switch - i.e.;

Code:
rm -r <directory name>
Be very careful when using -r though as it will remove everything underneath the specified directory and there's no going back - no Recycle Bin. ;)
 
#3
Thanks for quick response!

Especially now when I backup and restore xenForo a lot when I develop a new site it would suite me really well if the erase time went down a bit. I guess the process goes faster on the server than remote via FTP? :)