• Resolved theMikeD

    (@themiked)


    The codex doesn’t indicate this so I’m wondering if anyone else knows:

    There are two basic types of images: the original uploaded image, and the image(s) derived from it for things like thumbnails etc. The derived images are easily identified because they have the filename format

    <original>-<width in pixels>x<height in pixels>.ext

    When this function is called with the ID of an originally-uploaded image, will all derived images also be deleted? Or will then be left there as clutter?

Viewing 1 replies (of 1 total)
  • Thread Starter theMikeD

    (@themiked)

    The answer is yes. I looked at the source for the function and it does wipe out the intermediate sizes as well.

Viewing 1 replies (of 1 total)
  • The topic ‘will wp_delete_attachment delete all images sizes too?’ is closed to new replies.