Skip to content
class method

FileUtils.rm_rf

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

Equivalent to:

Example
FileUtils.rm_r(list, force: true, **kwargs)

Argument list or its elements should be interpretable as paths.

May cause a local vulnerability if not called with keyword argument secure: true; see Avoiding the TOCTTOU Vulnerability.

See FileUtils.rm_r for keyword arguments.

Related: methods for deleting.

See also #rm_rf .rm_r .rmtree .rm_f also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0