Skip to content
instance method

FileUtils#rm_f

(::FileUtils::pathlist list, ?noop: ::boolish, ?verbose: ::boolish) -> void
rm_f(list, noop: nil, verbose: nil)

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.

See also .rm_f #rmdir #rm_r #rm also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0