Support » Fixing WordPress » auto delete unused images feature

  • I have been reading the forum re how to get rid of unused images

    there does not appear to be a good solution

    it would be a good feature if WP would just automatically delete an image and all links to it when it is deleted from the editor. Why keep images in db if user does not want it on his/her site?

    today I tried to backup…got message over memory limit…tried to delete images…media page show 434 images all attached except image for header which shows unattached even though used in header. I am using less than 100 images on the site so 343+ are a waste of space.

    has WP considered this?
    if the Media page correctly showed unused images as ‘unattached’ that would work however it does not

Viewing 9 replies - 1 through 9 (of 9 total)
  • esmi


    Forum Moderator

    got message over memory limit

    What exactly is the error message?

    went to backups page, clicked RunNow and got this message

    BackUpWordPress failed to perform the backup. You have likely hit a memory limit.

    db is only 436 megs…so limit seemed low

    anyway, I do not need to keep all the unused images in the db

    that is interesting…

    only keeping 5 backups

    last good one was 2 oct for 375 KB size

    today tried 3 backups all failed… each shows 114 megs …much larger and have not added many new images since 2 oct

    WP calculates site as 436 MB…. jump up from prior backups of 375 KB including Database and Files



    Forum Moderator

    Is the unattached media, similar to the unused media on my site:

    I have hundreds of such files on my site, which are not used anywhere in the posts, nor they are for downloading.

    I want to delete them permanently.

    Can anyone suggest me the bulk deletion method?

    I did not get a reply from WP re the images, just the memory issue which has been resolved.

    Re images, I finally started naming all new images with the current date then sort the list by page and compare the names in the list with the names actually on the page (using mouse-over). This works fine for most of my pages with limited images however on 2 pages I have so many images that it is not worth the effort.

    In my opinion WordPress should have an option in the page editor to allow you to permanently delete an image there when you delete it from the page. Makes sense? That would solve the problem and make it much easier for users.

    Also, the media list should not just show ‘attached’ to a page when an image is not used on a page. Unused images should be ‘unattached’ or ‘attached not shown’ or something. Otherwise the media list is somewhat useless/misleading and difficult to use.

    Everything else in WP is first class. I wish they would bring the Media feature up to the same standard.

    Agreed!! Can unused images cause a site to slow? we have about 425 images and they are not all being used but I can’t figure out which images are being used and which are not.

    I’ve been having the same issue with excessive unused images but the site I’m working on has thousands of images. I’m trying these two plugins at the moment to see if there’s any success:

    Let me know if you found a better solution! Cheers!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘auto delete unused images feature’ is closed to new replies.