Delete Associated Images

Live Demo

Delete associated images when deleting any existing listing, page and blog post.

Every time an image is uploaded to your website, WordPress generates several copies of that image and stores them inside the uploads folder on your server. After a while all these images mount up, taking up valuable space on your server!

With this plugin you can force WordPress to automatically delete associated images when deleting any listing, page and blog post via the WordPresss back-end.

This plugin works with most AppThemes products, including:
ClassiPress, Clipper, JobRoller, HireBee, Taskerr, Ideas and Quality Control.

For a quick video demonstration on YouTube, please see here.

I know the video only shows ClassiPress in action, but I assure you other AppThemes products act the same way.

Like
5 people like this.

Will this plugin work with any AppThemes theme?
Yes

Will this plugin work with any WordPress theme?
Probably, yes. It is impossible for me to test every single WordPress theme out there, but I am confident it should. However, I can’t absolutely guarantee it. You will need to test this for yourself. Feedback will be greatly appreciated if you come across a theme that it does not work on.

1. Go to Plugins in your WordPress admin and then click Add New

2. Locate the delete-associated-images.zip file that you downloaded from your Apphemes purchases account, install the plugin and Activate it.

3. That’s it! Enjoy having an Uploads folder with images that are no longer being used.

For support, installation and any set-up information, please email me at the address provided in the readme.txt file, located inside the plugin folder.

One review of “Delete Associated Images

5 stars
must have plugin.
By -

i am so happy with this plugin. it helped me clean up my site and now it runs faster. thank you.

Like
2 people like this.
You need to purchase this item before reviewing it.
(Just bought it? Log out and back in to enable reviews.)

 Comments (35)

  • idealizer

    Will this only work if you delete the post, or will it also work, if you delete a user (and by doing so, delete all of that users ads?)

    Like
    2 people like this.
  • author
    talent

    When deleting Users in the WP back-end, you have the option to “Delete all Content”. This will delete the images at the same time.

    Unlike the demo video for this plugin, you will not see them disappear live, but if you come out of the uploads folder and go back in, you will see they are gone.

    I tested this using the WP 4.2.3, hopefully others version work too. If not, then simply update.

    Like
    2 people like this.
  • chappster

    The video shows the Administrator deleting the ads and the associated images being deleted. Will the same thing work if the user deletes the ad or the theme deletes the ad automatically because the ad has expired?

  • author
    talent

    Yes. It has always worked when users delete their ads in the front end, thankfully.

  • swatch155

    Hi ,
    I do not really understand how acts the plugin πŸ™‚ I bhought it having the objective of completely deleting any pictures from expired ads but does it automatically ? Do I need to set up something ?
    Thank you πŸ™‚

  • malioglasi

    Hi,
    If I delete more then one ad at the same time (bulk delete ads) will this plugin also delete all assosiated images ? In your demo video you only deleted one single ad.
    If I have like 200 ads in the trash, and click Empty trash, will assosiated images also be deleted ?
    Thanks

    • author
      talent

      I don’t have 200 ads to test that out, but I see that you went ahead and purchased the plugin anyway. You can now answer your own question πŸ™‚ I did test with deleting several ads at a time and that worked fine.

      Like
      Anonymous likes this.
  • malioglasi

    On my site – it is not working (classipress 3.5.1 wordpress 4.3.1).

    So I selected all ads from 2013/1 and send them to trash about 250 of them. Then I went to trash, selected all of them, and select delete permanently. After ads were deleted, in the wp-content/uploads/2013/1 all images are still there. There are a lot of images, probably more then 1000 so I waited a while, but 20 minutes later images are still there and not moving.

    I tried to delete only 2 at the same time, from same folder, i wrote image numbers,, sent them to trash, bulk delete, and in that case it worked. Associated images were deleted.

    So I guess there is some limitation on how many ads/images can you delete at once, for this plugin to work.

    I purchased the plugin because many times I just delete single ad, so it should be usefull to me, but it would be more useful if this mass delete ads/images would work.

    • author
      talent

      I was about to tell you to ask for support from me in the support forums, but it appears appthemnes have neglected to set me up with one in the forum. I shall have words with them about that. In the meantime I shall email you for your URL. Thanks

    • author
      talent

      After much testing on your website I can confirm it can bulk(mass) delete 200 ads. The reason you don’t see the images deleting is down to your own FTP set-up. In your case, in between each deletion I had to quit the FTP program and then reconnect to see that the images were indeed deleted. With my FTP client, you can see the images delete immediately, as shown on the video demo. I have no idea why each FTP programme/settings behave differently. Rest assured the images are deleted and that is all that matters πŸ™‚

      Like
      2 people like this.
  • franky

    Hi talent , this sounds good.

    Can i ask will this plugin delete pictures even after ads have been deleted prior to plugin installation.

    As this could help reduce storage i think as my hosting provider backs me up twice a day.

    Also does this only have access to upload folder.

    Bests

    • author
      talent

      The purpose of the plugin is to delete “associated” images when deleting any ad, page or blog posts. If the ad, page or blog posts no longer exists (ie: has already been deleted) then the association of any images to ads, pages or blog post has been severed.

      Yes, it will only delete the associated images of blog posts, pages and ads. All these type of images are stored in the upload folder.

  • styki

    Is Multi site Compatible ?

    For instance:

    Bob, posts an ad on site 1, and and identical ad on site 2

    The ad is then caused to be no longer active on site 1 (by whatever method or person)

    However the ad remains active on site 2

    What happens then ?

    (the process and results please)

    • author
      talent

      Please email me for support. You can find my email address in the README.txt file inside the plugin folder.

      Have you tested this on your set-up? I do not have a multisite set-up, so unable to test this for you. The question is, does each site have it’s own Uploads Folder? I’m afraid I don’t know how WordPress multisites are set up. I have never created one.

      I have emailed you for further information.

      • styki

        i do not own this plugin yet, that is why i did not go through support. πŸ™‚

        ergo i have not tested it either

        my other question is have you or others had any experiance in using this in conjuction with the EWWW and or IMSANITY plugins as they create additional thumbnails ?

        • author
          talent

          I use the Imsanity plugin running on my demo site, and I have no issue with it, but I have never heard of the other plugin you mention, so can’t verify anything to do with it. Seems to me you are pre-emptying things before knowing. Which is fine, but no-one can possibly know or see what effect anything has on any plugin unless it is tested.

          Since there are several thousands of ( hundreds of) plugins, that would be impossible. A case of trial and error to see.

  • votepartners

    Good plugin Talent. Working very well when to delete all ads from Bin by click ‘Empty Bin’. If I try to delete ads individually (from bin) its not working for me. Maybe I do something wrong. But please check it.

    • author
      talent

      That is odd. I don’t know what you are doing wrong. Works for me, whether deleting one ad at a time or multiple ads. Please email me your URL and admin access and I’ll take a look. Please hit the “Support” tab above, it will tell you how to contact me. Thanks

  • dmacdonald

    Is there a way to automatically remove JobRoller job listings when they’ve been expired for a given number of days? I’m pulling about 200-300 listings a day from Indeed/Craigslist/CareerJet (upwards of 110,000/year) to populate the site. Most listings will be irrelevant after 30 days and I don’t want to repost them. This will lead to an overwhelmingly large database. I’d like to limit those added in the last 60 days and their associated images. Will likely need to keep these separated from other job posters who want to renew their expired ads.

    I’m willing to pay for a plugin/script that can handle this task. Thanks.

    • author
      talent

      Hello, I don’t know Jobroller well enough to comment on this, but doesn’t Jobroller automatically prune ads in the backend anyway? I know Classipress can. Sounds like you need to investigate the pruning action of the Jobroller theme. I don’t have a Jobroller theme set up. I suggest you ask in the forums. This plugin does not have a pruning function, sorry.

  • Sascha

    it’s possilble to create the Plugin “new”?

    My Problem is, i have 200.000 images and i think 70% of this is expired.
    So when it’s possible to write the new Plugin with the option “delete assoiated image” 1 Week after the Post is expire?!

    • author
      talent

      If your ads are expired, ie: in “draft” mode, it is still possible. However, if ads are already “permanently deleted” then it would be impossible to “associate” images with ads that no longer exist. Hope that makes sense to you.

  • aj2703

    Has this been tested on Vantage…..

  • Ed

    Will this work with WooCommerce. I am seeing WooCommerce adding multiple images of the same item all over the place and not removing them when deleting a product. I have seen hundreds of unused duplicates it is not removing. Please help young lady.

    • author
      talent

      I have not tested with the WooCommerce plugin. This plugin is designed to work with the themes. So can’t be certain how it will react to a plugin that uploads images separately. I can only assume ad listings and product listings are separate, no?

  • chifen

    Same here is it working with newest wordpress and cp?

    Like
    Anonymous likes this.
  • Kristina

    I’ve deleted several Vantage listings, then visited my uploads folder on server, and many images from those deleted listings are still there! Made sure the listing was both deleted, and then, “permanently deleted” option as well.

    To test differently, i first opened a different listing and deleted the images individually from my “media uploaded to this content” option. Tht eliminated 5 images for that listing. I then deleted the listing, and then “deleted permanently.”

    I went to the /uploads/ file on the server and sure enough, all the associated images and image sizes for that deleted listing, are still there.

    ?

    • author
      talent

      Seems very odd behaviour! Please PM me your URL and WP backend access details for testing purposes. Are you using any kind of cache plugin or systems?if so which? Just to check…, have you tried to delete your cache and/or refreshed your browser? Most of these issues are generally down to not refreshing the browser and/or cache, so just making sure…

      • Kristina

        I do use a caching system, but was sure to delete it. I’ll do so again, with my next text, but since I’m directly logged into my cpanel, and looking at the uploaded files, wouldn’t that not be impacted by cache on my personal browser? I’ll get back to you.

        • author
          talent

          Ok, but please email me for any further support rather than clog up this comments section. You’ll find my email address in the README.txt file. Thanks

  • mouradbouikni

    Hi,
    is this plugin still compatible with the last classipress version.
    thank’s

  • rgavila

    has this been updated to work on classipress 4+ ???

Leave a Reply

More by talent

cp iLike

CP iLike

The CP iLike plugin allows your users to "Like" blog posts and ad listings.…


(1)
$12
cp-simply-550-thumb

{CP} Simply Responsive

A nice simple, feature packed responsive child theme for ClassiPress.


(33)
$49
cp price options

CP Price Options

Allow your users to add different pricing options to their listings. A…


(3)
$15