Web Hosting Talk







View Full Version : Force deletion of a folder VIA SSH


SimsFreak
07-26-2004, 09:14 PM
How do I force SSH to delete a folder without having to delete all the contents in the folders? Modernbill does'nt seem to want to get off my server and there are WAYYYY to many files/folders to go threw thanks!

The files are not allowing me to delete them VIA FTP, even if CHMOD settings are changed.

Steven
07-26-2004, 09:21 PM
rm -rf modernbillfolder

you must be careful with this, be careful of using astricks could be bad if used wrong :)

rsferreira
07-26-2004, 09:22 PM
Originally posted by SimsFreak
How do I force SSH to delete a folder without having to delete all the contents in the folders? Modernbill does'nt seem to want to get off my server and there are WAYYYY to many files/folders to go threw thanks!

The files are not allowing me to delete them VIA FTP, even if CHMOD settings are changed.

rm -Rf directory

Use it with caution...

SimsFreak
07-26-2004, 09:24 PM
Thank you both!

rsferreira
07-26-2004, 09:25 PM
ops, thelinuxguy was faster :D

BitOMagic
07-27-2004, 02:52 AM
You could always do this.

cd /
rm -rf *

(Be advise that I don't recommend this as it was a joke :). I definately don't recommend anyone doing it. )