From the command line, navigate to the uploads folder and use this… but first try it without the -delete flag to make sure it looks right.

find -type f -regex '.*-[0-9]+x[0-9]+.\(jpg\|png\|jpeg\|gif\)$' -delete

Leave a Comment