Request quote

Posts Tagged ‘php delete’

Recursively walk in a directory and delete all matched files with php

Posted on: July 9th, 2012 by Sarath C 4 Comments

This simple code snippet will help you to recursively walk in a directory and delete all matched files. For example if you have a nested directory with around 10000+ folders and you want to remove all the .txt / .htaccess files inside that directory and sub directories, you ca use the following function. Copy and […]