Skip to content

Instantly share code, notes, and snippets.

@buiquangduc
Created October 7, 2017 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buiquangduc/97071d57f589594f7e118586a2ea7664 to your computer and use it in GitHub Desktop.
Save buiquangduc/97071d57f589594f7e118586a2ea7664 to your computer and use it in GitHub Desktop.
Detele all the files with specific prefix by PHP
<?php
$mask = 'your_prefix_*.*';
array_map('unlink', glob($mask));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment