From: Tara Keane Date: 2010-12-01T19:59:55+09:00 Subject: I can't get FileUtils to delete a directory Hi there, I created a test folder with two sub-folders inside and now I want to delete the main folder. In irb I typed: require 'fileutils' FileUtils.rm_f("test") I'm running the command from C: and the folder is directly off C: I assumed it should just delete but nothing's happening... I know Dir.delete won't delete a folder if there is something in it. I want to figure out how to delete the folder in one command rather than having to go through it deleting all the sub folders one by one. I'm sure there's a way to do this? -- Posted via http://www.ruby-forum.com/.