Deleting Files in PHP
To delete files, the function
unlink is used. It takes the path
to the file to be deleted as a parameter:
<?php
unlink('test.txt');
?>
Let the files 1.txt,
2.txt, and 3.txt be located in the root of your site.
Manually create an array with the names of these files.
Loop through it and delete all these files.