Support » Fixing WordPress » Removing unused image

  • Is there any good plugin that listed from to remove unused images? Thanks.

    I found DUI but it is not listed into
    I found Upload Janitor but it is not good, I see the comments and download stats.


Viewing 14 replies - 1 through 14 (of 14 total)
  • … what? I’m a little bit confused as to what it is you’re actually asking here.

    For example. I upload my image that have title mylogo.jpg 500px x 500px .
    WordPress duplicate this image into many files but into different size from the original one. WordPress duplicate it into 150×150, 300×300, etc. I have it on my server but sometimes I do not use it for my post.

    Is my explanation clear?


    Just delete the files from the media library if that don’t work delete them from the server with ftp

    Thanks for your response. I would delete them, but there a hundred images there. I’m wondering there is any plugin or feature for WordPress itself.

    I think I should attac the images here

    Thanks for your response.
    I have said that I had found DUI (Deleted Unused Images) on that site. But that plugin is not available on directory. Thus, I do not trust that plugin. And I start this thread to find another plugin 🙂

    lol…. some ppls children

    Delete Unused Images SAYS

    Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/myblog/public_html/wp-content/plugins/dui/dui10.php on line 170
    There are total 0 unused images file

    not work for me, any sugestion to fix this error

    I think it’s a perfectly good question. On one of my sites I am seeing that whenever I use the flash uploader, which I have used many times, the default “link” created for someone who clicks on the image goes to an individual photo of the image. Sometimes this shows up as just the image with no html, but depending on what folder the image is held in (automatically without my creating this path), it sometimes shows up within a gallery feature that I do not use. This is not critical, however, there is a button on the bottom of the gallery that says “previous” or “next” image. It’s a concern that the gallery is then going to be displaying orphan images that I never intended to be part of the site. For example, a Photoshopped image, uploaded, noticed a misspelling on some text, corrected, re-uploaded. Now the “mistake” image is right in there with the rest in the gallery, even though it was replaced for the purposes of what I intend to be displayed to website visitors.

    In addition, just as Amyunus has said, I have uploaded my header logo more than a dozen times, nudging the content in Photoshop and re-uploading. I notice that in the “Header” section of the admin interface the system saves all of these logos, as if I might want to select one of them in the future. But what I am suggesting is that I don’t want them there, and I won’t want to select them in the future.

    It would be nice if there was a plug-in that simply pulled a list of orphan images, that are not actually included in any website pages, so I could delete most of them. For them to be included in galleries that a user will inevitably stumble upon is a bad thing.

    And I do agree that if a developer writes a plug-in, it should be uploaded into the “directory” or I wouldn’t trust it either.

    Any help is appreciated.

    Ah – now I am seeing in the WP admin interface the Library (left side under Media). This is pretty helpful, as it lists all images. Since this site is relatively new, I only have five pages of images. Hitting the column header “Attached to” sorts them and forces the “unattached” images to the beginning of the list.
    Then I simply deleted what I wanted to right in that interface, much easier than trying to match image names with images and deleting manually … from folders.
    There’s one thing worth mentioning, which is that the header image that I am actually using in this theme (matala) was flagged as “Unattached” … even though it was being used as the header image for the theme. I caught this and didn’t delete the file, but just a word of caution there.

    This site is not published yet, but will be within the next few days. It will be located at

    To: anon
    here’s a version that works well DUI problem

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Removing unused image’ is closed to new replies.