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've noticed that images which are generated by "add_image_size" wont be deleted whenever i delete the media item. So after removing all media items in the media manager i have a upload folder full of thumbnail images.

Anyone else experiencing this?

share|improve this question

Yep. This is standard behavior, everyone experiences it. There's no workaround at this time.

Edit: This was fixed in WordPress 3.3 and attachments should be removed properly now.

share|improve this answer
Ah that's interesting. I was thinking about using the "delete_attachment" hook but this is called after the actual delete, so there is no data either. Then it is waiting for the wordpress folks, thanks. – Jeroen Aug 15 '11 at 5:13
I know it's MONTHS but ... Guess what works on 3.3? :D – Ipstenu Nov 8 '11 at 15:55

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.