See Dir.rmdir. Remove the referenced directory.
Dir.rmdir
979
# File 'lib/rubysl/pathname/pathname.rb', line 979 def rmdir() Dir.rmdir(@path) end