1. 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?

Discussion in 'XenForo Questions and Support' started by fredrikse, Jul 17, 2012.

  1. fredrikse

    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.
     
  2. CyclingTribe

    CyclingTribe Well-Known Member

    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. fredrikse

    fredrikse Active Member

    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? :)
     
  4. CyclingTribe

    CyclingTribe Well-Known Member

    Yes, much faster than via FTP. (y)
     

Share This Page