Title: DX Delete Attached Media
Author: Mario Peshev
Published: <strong>април 11, 2012</strong>
Last modified: декември 19, 2023

---

Search plugins

![](https://ps.w.org/dx-delete-attached-media/assets/banner-772x250.png?rev=1729317)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/dx-delete-attached-media/assets/icon-256x256.png?rev=1729317)

# DX Delete Attached Media

 By [Mario Peshev](https://profiles.wordpress.org/nofearinc/)

[Download](https://downloads.wordpress.org/plugin/dx-delete-attached-media.2.0.6.zip)

 * [Details](https://mk.wordpress.org/plugins/dx-delete-attached-media/#description)
 * [Reviews](https://mk.wordpress.org/plugins/dx-delete-attached-media/#reviews)
 *  [Installation](https://mk.wordpress.org/plugins/dx-delete-attached-media/#installation)
 * [Development](https://mk.wordpress.org/plugins/dx-delete-attached-media/#developers)

 [Support](https://wordpress.org/support/plugin/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

### 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

![](https://secure.gravatar.com/avatar/8b3f5f7ccc4964a1241466c6a0d8058fe20450ede40d09410c9d8695a47e4521?
s=60&d=retro&r=g)

### 󠀁[Does what it says.](https://wordpress.org/support/topic/does-what-it-says-1144/)󠁿

 [pixcil](https://profiles.wordpress.org/pixcil/) мај 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. ♥

![](https://secure.gravatar.com/avatar/e7b032145f76326f6692bddccdb000ec2d7a8b10e3b3128e8f6367ea3c4c5ec7?
s=60&d=retro&r=g)

### 󠀁[Plugin deleted media used elsewhere on the site](https://wordpress.org/support/topic/plugin-deleted-media-used-elsewhere-on-the-site/)󠁿

 [nicole2292](https://profiles.wordpress.org/nicole2292/) септември 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.

![](https://secure.gravatar.com/avatar/dcaccaa48b3e8ad84d98773a6348e8256993e02ef38c6ea0305d23855a497de0?
s=60&d=retro&r=g)

### 󠀁[Perfect!](https://wordpress.org/support/topic/perfect-9346/)󠁿

 [MaxByer](https://profiles.wordpress.org/maxbyer/) јуни 24, 2022

It does what it says, simple and easy.

![](https://secure.gravatar.com/avatar/f221c3307bacffcf4733a1820f18d50f0a642db4772112f118e5325b7d4d4dfb?
s=60&d=retro&r=g)

### 󠀁[Lifesaver!](https://wordpress.org/support/topic/lifesaver-207/)󠁿

 [jreitter](https://profiles.wordpress.org/jreitter/) ноември 16, 2021

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

![](https://secure.gravatar.com/avatar/9335de3226b6ed8babb19a8a48073bac9181c2082d80bb2b9ea745991bec25af?
s=60&d=retro&r=g)

### 󠀁[The only one that works](https://wordpress.org/support/topic/the-only-one-that-works-8/)󠁿

 [UomoMacchina](https://profiles.wordpress.org/uomomacchina/) мај 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.

![](https://secure.gravatar.com/avatar/cf3ced212409e4a92a65396ae85c49bf6fbae8ca00a86e6ea49a0976bc1e8621?
s=60&d=retro&r=g)

### 󠀁[Fabulous Plugin](https://wordpress.org/support/topic/fabulous-plugin-55/)󠁿

 [Livingstone](https://profiles.wordpress.org/livingstone/) февруари 27, 2020 1 
reply

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

 [ Read all 28 reviews ](https://wordpress.org/support/plugin/dx-delete-attached-media/reviews/)

## Contributors & Developers

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

Contributors

 *   [ Mario Peshev ](https://profiles.wordpress.org/nofearinc/)
 *   [ DevriX ](https://profiles.wordpress.org/devrix/)

[Translate “DX Delete Attached Media” into your language.](https://translate.wordpress.org/projects/wp-plugins/dx-delete-attached-media)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/dx-delete-attached-media/),
check out the [SVN repository](https://plugins.svn.wordpress.org/dx-delete-attached-media/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/dx-delete-attached-media/)
by [RSS](https://plugins.trac.wordpress.org/log/dx-delete-attached-media/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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

## Meta

 *  Version **2.0.6**
 *  Last updated **2 години ago**
 *  Active installations **4.000+**
 *  WordPress version ** 4.5 or higher **
 *  Tested up to **6.3.8**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/dx-delete-attached-media/)
 * Tags
 * [attachment](https://mk.wordpress.org/plugins/tags/attachment/)[media](https://mk.wordpress.org/plugins/tags/media/)
   [post](https://mk.wordpress.org/plugins/tags/post/)
 *  [Advanced View](https://mk.wordpress.org/plugins/dx-delete-attached-media/advanced/)

## Ratings

 4.9 out of 5 stars.

 *  [  27 5-star reviews     ](https://wordpress.org/support/plugin/dx-delete-attached-media/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/dx-delete-attached-media/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/dx-delete-attached-media/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/dx-delete-attached-media/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/dx-delete-attached-media/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/dx-delete-attached-media/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/dx-delete-attached-media/reviews/)

## Contributors

 *   [ Mario Peshev ](https://profiles.wordpress.org/nofearinc/)
 *   [ DevriX ](https://profiles.wordpress.org/devrix/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/dx-delete-attached-media/)