From: Ammar Ali Date: 2010-12-01T20:23:47+09:00 Subject: Re: I can't get FileUtils to delete a directory On Wed, Dec 1, 2010 at 12:59 PM, Tara Keane 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