Delete Post with Attachments
A simple plugin to delete attached media files e.g. images/videos/documents, when the post is deleted. Supports Elementor, Divi Builder, Thrive Archit …
Plugin info
Maintenance & Compatibility
Maintenance score
Maintained • Last updated 134 days ago • 6 reviews
Is Delete Post with Attachments abandoned?
Likely maintained (last update 134 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
By default, when you delete a post or page, any associated media files or attachments to that post do not get deleted. Keeping these orphan files to your server will eat up a lot of precious web space for no reason.
Using this plugin when you delete a post, any associated attachments will also get deleted automatically.
Before deleting any media file or attachment the plugin smartly checks that the attachment is not in use elsewhere, i.e. on any other post, page, or product.
Works with popular Page Builders:
- Elementor
- Thrive Architect
- Divi Builder
- Brizy
- and many more…
Works with all popular plugins such as:
- WooCommerce
- Easy Digital Downloads
- LearnDash
- BuddyPress
- MemberPress
- Paid Memberships Pro
- and many more…
Features:
- No configuration required
- Just activate and use
- Save your precious server storage
- Works automatically on post/page deletion
Installation
- Upload the plugin directory to the
/wp-content/plugins/directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress
Frequently Asked Questions
The attachment will not be deleted if the post is moved to Trash, the attachment will only get deleted when the post is permanently deleted
Sometimes single attachment is used in multiple posts, for example you have used “image1.jpg” in “Post 1” and “Post 2” both. Deleting “Post 1” will not delete the image until “Post 2” is also deleted permanently. Please make sure your attachment is not in used any other post.
Yes! it removes media files linked to posts, pages, and products, including those created using popular page builders.
We have tested the plugin with Gutenberg, Elementor, Thrive Architect, Brizy, and Divi Builder. Other page builders may also work, but have not been fully tested yet.
We have got you covered! Let us know via the plugin’s support page, and we will work to add compatibility with your builder.
No, there is absolutely no configuration required, just activate the plugin, and it will start working.
Yes, when you delete a post the plugin will check if there is any associated media or attachment in this post it will be deleted also.
Yes, it works with any types, posts, pages, products etc
If a single attachment is used on multiple posts, the attachment will not get deleted until all associated posts are deleted.
Yes, the plugin will check if the image is not used in any other post then it will get deleted along with the current post.
Review feed
Screenshots
Changelog
[2.0.0] – 2025‑08‑19
- Added: support for Gutenberg editor
- Added: support for Elementor
- Added: support for Thrive Architect
- Added: support for Divi Builder
- Added: support for Brizy
1.4
- Fix – Compatibility issues with WordPress 6.8.1
1.3
- Fix – Compatibility issues with WordPress 6.8
1.2
- Fix – wp_delete_attachment function second param to bool instead of string
1.1.3
- Fix – Compatibility issues with WordPress 6.4
1.1.2
- Fix – Compatibility issues with WordPress 6.0
1.1.1
- Fix – Compatibility issues with WordPress 5.9
1.1.0
- New – Implement featured image deletion
1.0.0
- Initial release