DX Delete Attached Media

Plugin Banner

DX Delete Attached Media

by Mario Peshev

Download
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.

  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.
  1. Insert newly uploaded media to your post.

    Insert newly uploaded media to your post.

  2. Publish and then Delete your post.

    Publish and then Delete your post.

  3. You'll have to Delete your post Permanently.

    You'll have to Delete your post Permanently.

  4. The Attached Media is deleted.

    The Attached Media is deleted.

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.

Does what it says.

By pixcil on May 19, 2023

Where I had a custom code implementation to do what this plugin does - that caused the site to completely destroy itself - this plugin does not. It does what it says without any issues. And its free! Big thank you to the developers. ♥

Plugin deleted media used elsewhere on the site

By nicole2292 on September 27, 2022

Unfortunately this plugin deleted media which was used elsewhere on the site. It deleted media which was used in other posts by the ACF Image Fields and ACF Gallery plugin. It should not delete media which is used elsewhere on the site.

Perfect!

By MaxByer on June 24, 2022

It does what it says, simple and easy.

Lifesaver!

By jreitter on November 16, 2021

I run a classifieds site with thousands of posts and images uploaded by the users. This plugin is a total lifesaver!

The only one that works

By UomoMacchina on May 26, 2020

The plugin works well, but not delete the ".webp" file type. Hope the author fix it in next update, but for me is a 5* plugin. Just install, activate and it does the job.

Fabulous Plugin

By Livingstone on February 27, 2020

Its a perfect plugin. No setup and/or configurations required. Serves its purpose better. 5*. Works so well with Classifieds website, woocommerce and the like. Perfect

Super

By mavipatik on July 20, 2018

Five star *****

Nice Plugin

By Mohsin Alam (mohsinworld) on March 9, 2018

Worked like a charm! Thanks

OMG I love whoever made this

By aydinhamouni on March 5, 2018

Works perfect with woocommerce

Very useful

By Weiching (Weiching Lin) on December 27, 2017

This saves a lot of time. Thank you.

2.0.6

  • Fixed vulnerability report

2.0.5.1

  • Fix plugin conflict between DX DAM and other plugins

2.0.5

  • Fixed plugin conflict with Post SMTP

2.0.4.1

  • Revert to version 2.0.3

2.0.4

  • Fixed plugin conflict with Post SMTP

2.0.3

  • Fixed security issue
  • Update tested-up version
  • Update required PHP version

2.0.2

  • Added default icon for other formats

2.0.1

  • Added default options for the plugin filters settings
  • Fixed the issue with the subfolder instalations

2.0

  • Has been added separate menu for the plugin
  • The plugin icon has been added
  • On the main plugin page has been added a table with the following columns displaying: the media file, the parent post if is used, the other posts that contains it if is used
  • On the main plugin page, a checkbox has been added for enabling/disabling the plugin’s functionality, called ‘Enable feature’.
  • Added filter: by date (Newest/Oldest)
  • Added filter: by Parent post (Used media/Unused media)
  • A Help page has been added with instructions and screenshots describing the functionality of the plugin.

1.0.1

  • Update the plugin version and Tested up to tag

1.0

  • Extended support for WooCommerce and Easy Digital Downloads.

0.5

  • Description update and version bump

0.4

  • First release
Back to top