Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
FileUtils#rm_f
(::FileUtils::pathlist list, ?noop: ::boolish, ?verbose: ::boolish) -> void
rm_f(list, noop: nil, verbose: nil)
lib/fileutils.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/fileutils.rb, line 1242
def rm_f(list, noop: nil, verbose: nil)
rm list, force: true, noop: noop, verbose: verbose
end
Equivalent to:
Example
FileUtils.rm(list, force: true, **kwargs)
Argument list (a single path or an array of paths) should be interpretable as paths.
See FileUtils.rm for keyword arguments.
Related: methods for deleting.