How can i delete all the files with the same filetype within a directory in php?

  • Thread starter Thread starter truepal20032001
  • Start date Start date
If you can execute ftp command:
delete *.jpg

will delete all file with .jpg extention... be aware that unix server are case sensitive.

If you have access to a terminal, like ssh, move to the directory and:
rm *.jpg
 
Back
Top