Delete a file with the unlink() function. : unlink « File Directory « PHP






Delete a file with the unlink() function.

 
Its syntax is: int unlink (string file)

<?

unlink("data.txt");
?>
  
  








Related examples in the same category

1.Deleting Files with unlink( )
2.Using file_exists, touch, and unlink together
3.Using the unlink() Function
4.You can remove an existing file with the unlink() function.
5.Deleting a file
6.Deleting files
7.Moving a file across filesystems