WordPress.org

Forums

auto delete unused images feature (10 posts)

  1. TTTonWP
    Member
    Posted 2 years ago #

    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

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    got message over memory limit

    What exactly is the error message?

  3. TTTonWP
    Member
    Posted 2 years ago #

    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

  4. TTTonWP
    Member
    Posted 2 years ago #

    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

  5. TTTonWP
    Member
    Posted 2 years ago #

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

  6. esmi
    Forum Moderator
    Posted 2 years ago #

  7. Dattaraj Vidyasagar
    Member
    Posted 2 years ago #

    Is the unattached media, similar to the unused media on my site: http://vsagar.com?

    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?

  8. TTTonWP
    Member
    Posted 2 years ago #

    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.

  9. kemie@gacreative.com
    Member
    Posted 1 year ago #

    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.

  10. 82concepts
    Member
    Posted 1 year ago #

    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:

    http://wordpress.org/plugins/cleanup-images/
    http://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/

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

Topic Closed

This topic has been closed to new replies.

About this Topic