Documentation for method unlink

Documentation for method unlink, assembled from the following types:

class IO::Path

From IO::Path

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

Delete all specified ordinary files, links, or symbolic links.

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.