Documentation for method unlink

Documentation for method unlink, assembled from the following types:

class IO::Path

From IO::Path

Defined as:

method unlink(IO::Path:D: --> True)
sub    unlink(*@filenames --> List:D)

Delete all specified ordinary files, links, or symbolic links. See rmdir to delete directories.

The subroutine form returns the names of the files that were successfully deleted. The method form returns True on success, or fails with X::IO::Unlink if the operation could not be completed.