Delete Post with Attachments
by Alsvin Tech on WordPress.org
A simple plugin to delete attached media files e.g. images/videos/documents, when the post is deleted. Supports Elementor, Divi Builder, Thrive Archit …
(6)
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
Active installations900+
Weekly downloads
290-3.01%
Version2.0
Last updated8/19/2025
WordPress version4.1
Tested up to6.8.2
PHP version5.6
Tags
attachmentcleanupdeletemediapost