method

unlink

unlink(path)
public

See IO.unlink when path is a file.

See Dir.unlink when path is a directory.