Skip to content
class method

FileUtils.remove_file

(::FileUtils::path path, ?::boolish force) -> void
remove_file(path, force = false)

Removes the file entry given by path, which should be the entry for a regular file or a symbolic link.

Argument path should be interpretable as a path.

Optional argument force specifies whether to ignore raised exceptions of StandardError and its descendants.

Related: methods for deleting.