End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
FileUtils.rm_rf
rm_rf(list, noop: nil, verbose: nil, secure: nil)
lib/fileutils.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/fileutils.rb, line 647
def rm_rf(list, noop: nil, verbose: nil, secure: nil)
rm_r list, force: true, noop: noop, verbose: verbose, secure: secure
end
Equivalent to
Example
FileUtils.rm_r(list, force: true)
WARNING: This method causes local vulnerability. Read the documentation of rm_r first.