From: Kaldrenon Date: 2007-06-19T03:30:06+09:00 Subject: Re: Deleting a non empty directory On Jun 18, 1:32 pm, Kostas Zoumbatianos wrote: > Hi, I am getting an exception when I use Dir.delete on a non empty > directory. > What should I do to remove a non empty directory? > > Thanks, > Kostas > > -- > Posted viahttp://www.ruby-forum.com/. Use Dir.each to iterate over the items in the dir, and call File.delete on them. Then call Dir.delete.