WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently used an image importer that has duplicated all the images. They are attached to the right posts and the posts are fine (not duplicated).

How do I run through my media library deleting duplicate images?

share|improve this question

The best way (if the duplicated images are the ones attached) is to order by date, and bulk delete all the older ones.

share|improve this answer
I'm not sure I understand. Could you expand on your answer, please? Do I do this via the wordpress admin or creating a loop? – UzumakiDev Mar 8 '14 at 17:39
Go to the media library, order the files by date, and delete all them old ones. – Sormano Mar 8 '14 at 17:51
They all have the same date as they were all "edited" at the same time. There are 1000+ images. – UzumakiDev Mar 8 '14 at 18:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.