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 […]