DX Delete Attached Media

Description

DX Delete Attached Media deletes all of the attached media files to your posts once they get deleted from the system. The standard core behavior deletes posts alone without taking care of related images. Now you can maintain your install and get rid of all solo attachments getting into your posts via the Media button and used nowhere else.

The plugin works with WooCommerce and Easy Digital Downloads.

Screenshots

  • Insert newly uploaded media to your post.
  • Publish and then Delete your post.
  • You'll have to Delete your post Permanently.
  • The Attached Media is deleted.

Installation

  1. Upload ‘dx-delete-attached-media’ to the ‘/wp-content/plugins/’ directory or find via the Plugins admin section
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. That’s all. It would use out of the box, no settings needed. If you want to disable the functionality, disable the plugin from the Plugins section.

FAQ

Installation Instructions
  1. Upload ‘dx-delete-attached-media’ to the ‘/wp-content/plugins/’ directory or find via the Plugins admin section
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. That’s all. It would use out of the box, no settings needed. If you want to disable the functionality, disable the plugin from the Plugins section.
Does it work for custom post types?

Yes, as long as you attach images via the Media button, they are going to be deleted once the post/post type entry is deleted.

Does it work for all of the deleted posts?

It works for all of your deleted posts, as long as you delete them from the system. Keep in mind that the soft delete sends your post to Trash first, and deleting the media would happen once your Trash is being emptied.

Reviews

Great plugin

Does exactly what its supposed to do. Been looking for a plugin like this for some time.

Works great!

This was the plugin I have been looking for. Saved by day. It does what it says and now I can delete my posts and be rest assured that the attached images are deleted as well – saving me some realestate in my storage. Great tool. Keep up the great work!

WISHLIST: It would be great if this can be expanded (Pro version?) to be able to find images in page/post inserted using a visual builder and not ‘Add Media” button so that when a page or post is deleted, those images are gone as well.

GREAT PLUGIN

great job with this plugin, a simple function what do all my work.

thanks for this

Read all 19 reviews

Contributors & Developers

“DX Delete Attached Media” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0

  • Extended support for WooCommerce and Easy Digital Downloads.

0.5

  • Description update and version bump

0.4

  • First release