title: What a safe and easy way to delete a dir in Ruby?
body: <p>I'd like to delete a directory that may or may not contain files or other directories. Looking in the Ruby docs I found <a href="http://apidock.com/ruby/Dir/rmdir/class" rel="noreferrer">Dir.rmdir</a> but it won't delete non-empty dir. Is there a convenience method that let's me do this? Or do I need to write a recursive method to examine everything below the directory?</p>