⊗ppPmFSFRm 341 of 447 menu

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.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline