how to delete folder  only when files does not exis ?

like
Dir.delete "#{RAILS_ROOT}/public/images/#{property.id}/#{unit.id}"