• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Remove directory

Originally posted by: RossMAN
What's the SSH shell command to remove a directory and all of it's subfolders?

Thanks.


SSH? In DOS, it's 'deltree', if that's any help.
 
No it's not in DOS I guess it's considered Unix.

I searched Google and found out it's rmdir but I get an error message stating
"bash-2.05a$ rmdir forums
rmdir: `forums': Directory not empty


Anyway to override that?
 
Originally posted by: RossMAN
No it's not in DOS I guess it's considered Unix.

I searched Google and found out it's rmdir but I get an error message stating
"bash-2.05a$ rmdir forums
rmdir: `forums': Directory not empty


Anyway to override that?


Sounds just like DOS....deltree would delete even if files still existed. Sorry I can't help you 🙁
 
if it helps, in UNIX, use "rm -R <dir>"

that will go into the directory itself and delete files and finally delete the directory itself.
 
Originally posted by: RossMAN
What's the SSH shell command to remove a directory and all of it's subfolders?

Sigh, you'd think with nearly 30k posts you'd figure this isn't an OT post 😉
Bill
 
Originally posted by: JC
Originally posted by: RossMAN
No it's not in DOS I guess it's considered Unix.

I searched Google and found out it's rmdir but I get an error message stating
"bash-2.05a$ rmdir forums
rmdir: `forums': Directory not empty


Anyway to override that?


Sounds just like DOS....deltree would delete even if files still existed. Sorry I can't help you 🙁

It's nothing like DOS. Stop speaking out of your butt. 😛

RossMAN, can't you use an FTP client to delete the directory? I think WSFTP will just go through and pulverize all the subdirs of a directory if you want.

As for the SSH, I try not to muck around with that any more than I have to. I'm deathly afraid of screwing something up. 🙂
 
Its not a SSH shell command, you're running bash there, which is a linux shell, so you're looking for the linux command to delete a directory.

And its rm -r <directory name>
 
Originally posted by: bsobel
Originally posted by: RossMAN
What's the SSH shell command to remove a directory and all of it's subfolders?

Sigh, you'd think with nearly 30k posts you'd figure this isn't an OT post 😉
Bill


It's RossMAN, he's exempt from such piddly rules.
 
Originally posted by: bsobel
Originally posted by: RossMAN
What's the SSH shell command to remove a directory and all of it's subfolders?

Sigh, you'd think with nearly 30k posts you'd figure this isn't an OT post 😉
Bill

postcount != topicness
 
Hey,

Try rm -rf Directory.

The "f" meaning "Do not prompt for confirmation. Do not write diagnostic messages. Do not produce an error return status if the only errors were nonexisting files.

Hope this helps.
 
rm -rf <directory>

It's also entirely possible you could have already deleted it ross. You just don't know! 😛
 
Back
Top