Command to delete a folder structure via SSH?

fredrikse

Active member
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.
 
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. ;)
 
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? :)
 
Top Bottom