From: Hans Mackowiak Date: 2013-01-10T18:17:13+09:00 Subject: Re: How to delete the folder contents using Ruby? this deletes a file require "fileutils" FileUtils.rm_r(s) this deletes all files in a given dir Dir["Filehosting/*"].each {|s| FileUtils.rm_r(s)} -- Posted via http://www.ruby-forum.com/.