Discover, trust, install: FAIR 1.0 is here

Plugin Banner

Auto Attachments Cleaner

by Stefano

Version: 1.0.4

Download
Description

Automatically deletes attachments (images, videos, files etc…) linked to a page, post or custom post type when it is deleted.

  1. Upload auto-attachment-cleaner folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Select the post types on which the plugin should work on the page Settings > Auto Attachments Cleaner and save settings
  1. Post deleted notice

    Post deleted notice

  2. Plugin settings

    Plugin settings

  3. Where plugin works (trash)

    Where plugin works (trash)

  4. Warning notice on Trash Page

    Warning notice on Trash Page

When are attachments deleted?

When the post is permanently deleted from the trash or the trash is emptied

Are all thumbnails created by wordpress also deleted?

Yes, a native WordPress function is used for deleting images, which also deletes all thumbnails created

Is Woo Commerce supported?

Yes Woo Commerce is supported, all plugin that works with Custom Post Type are compatible.

Very useful

By Jose (giuse) on February 28, 2025

Very useful plugin!

I recommend checking whether the images your plugin is about to delete are attached to other posts. Otherwise, you might accidentally remove images you intended to keep.

Additionally, it's best to display a clear warning message before deletion to prevent unintended data loss.

Best plugin ever!

By Stefano (stefacchio) on January 30, 2025

Absolutely a must-have for not taking up unnecessary server space. it should be integrated into wordpress! Deletes attachments automatically when articles are deleted.

1.0.4

  • [NEW] – Introduced Warning notice on Empty Trash button and on post row actions near to ‘permanently delete’ link

1.0.3

  • [FIX] – Bug Fix

1.0.2

  • [OPTIMIZATION] – Improve performance query

1.0.1

  • [FIX] – Fixed settings link into plugins page
  • [FIX] – Fixed notice when delete multiple posts

1.0.0

  • Plugin created
  • Version:Version: 1.0.4
  • Last updated:Last updated: 7 months ago
  • Requires:Requires: 5.0
  • Tested:Tested: 6.7.2
Average rating:5 out of 5 stars.
  • Number of ratings: 2 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
Back to top