Is DX Delete Attached Media safe to install?
Good choice: actively maintained
- Pass: Actively maintained Last updated 4 weeks ago (version 2.1.0).
- Pass: Compatible with current WordPress Tested up to WordPress 7.1; the current release is 7.1. Needs PHP 7.4+.
- Pass: Well rated Rated 4.9/5 by 28 users on WordPress.org.
- Pass: Widely used Active on 3,000+ sites.
Check every plugin on your site with the free WordPress plugin checker →
Based on WordPress.org data, checked Nov 19, 2026. Always keep plugins updated and test changes on a staging site.
Overview
DX Delete Attached Media describes itself as: “Automatically deletes attached media from posts and custom post types added via the Media button.”
It is active on 3,000+ WordPress sites and rated 4.9 out of 5 by 28 users on WordPress.org. Developers can extend it through 0 actions and 2 filters, listed below.
Downloads & growth
How often DX Delete Attached Media is downloaded from WordPress.org each day, over the last 90 days.
Source: WordPress.org download statistics. Downloads include updates on existing sites, so tall spikes usually mark a new release. See what's trending →
How to install DX Delete Attached Media
- Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
- Search for it. Type “DX Delete Attached Media” and pick the one by Mario Peshev.
- Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI
Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:
wp plugin install dx-delete-attached-media --activateRequirements: WordPress 4.5+ · PHP 7.4+ · tested up to WordPress 7.1.5
Hooks & customisation
DX Delete Attached Media 2.1.0 fires 0 actions and 2 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.
// Filters the posts that use an attachment. Attachments used by any post are kep…
apply_filters( 'dx_dam_attachment_used_in', $used_in_posts, $attachment_id );
// Filters whether to delete the media attached to a post that is being deleted p…
apply_filters( 'dx_dam_delete_post_attachments', true, $post_id );DX Delete Attached Media: frequently asked questions
Is DX Delete Attached Media free?
Yes. DX Delete Attached Media is free to download from the official WordPress.org plugin directory and is licensed under the GPL, so you can use it on as many sites as you like. Some developers sell a separate Pro version or paid add-ons; check the developer's website for details.
Is DX Delete Attached Media safe to use?
DX Delete Attached Media is actively maintained: the latest version was released 4 weeks ago. Users rate it 4.9 out of 5 from 28 reviews on WordPress.org. As with any plugin, keep it updated and only install it from WordPress.org or the developer.
Does DX Delete Attached Media work with WordPress 7.1?
Yes. DX Delete Attached Media is tested up to WordPress 7.1, the current release. It requires WordPress 4.5 or later and PHP 7.4 or later.
How many websites use DX Delete Attached Media?
DX Delete Attached Media is active on 3,000+ WordPress sites, according to WordPress.org. It is currently at version 2.1.0, last updated on October 25, 2026.
What are the best alternatives to DX Delete Attached Media?
Plugins that do a similar job and are actively maintained include Media Cleaner: Delete Unused Images & Clean Your Media Library (90,000+ installs).
Can I customise DX Delete Attached Media without editing its code?
Yes. DX Delete Attached Media 2.1.0 fires 0 actions and 2 filters that you can use from a child theme or a code snippets plugin, so your changes survive plugin updates. Browse all 2 hooks with examples.
Done for you
Need DX Delete Attached Media to do more?
Clear starting prices, an exact quote before any work, and changes built so plugin updates never wipe them.
Plugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisCustom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisBug or conflict fix
from $79
Errors, broken layouts or two plugins that don’t get along.
- Find the cause on a staging copy
- Fix without breaking updates
- Explain what was wrong
Typical turnaround: 1–3 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Need DX Delete Attached Media customised?
Tell us what you want changed, added or fixed and we'll reply with an estimate.
WP EXPERTS is independent and not affiliated with Mario Peshev. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 19, 2026.