unlink() function is used to delete the file in php. code example
Example: unlink() in php
<?php
// use unlink('filename.extension') to delete a file
// For example:
unlink('foo.php'); // will remove the file named foo.php
// Happy coding, my homies! <3
?>