On Wed, Dec 1, 2010 at 12:59 PM, Tara Keane <tararakeane / hotmail.com> wrote: > 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") This is similar to the command line version on unix systems, where removing a directory recursively require the -r option. The same applies here. Use rm_rf instead of rm_f. FileUtils.rm_rf('test') Regards, Ammar