PHP Delete File

PHP Delete File

unlink() - Deletes a file

bool unlink (string $filename [, resource $context ])  

Deletes filename. Similar to the Unix C unlink() function. An E_WARNING level error will be generated on failure.

<?php 
  $file_name = "c:\folder\resource.txt";
  unlink($file_name);
?>