How to delete a file from the system using PHP ?

unlink() is using tp delete the given file from the file system.

unlink()
<?php

$fh = fopen(‘page.html’, ‘a’);
fwrite($fh, ‘< h1>Hello world!‘);
fclose($fh);

unlink(‘page.html’);

?>