Delete Post with Attachments

A simple plugin to delete attached media files e.g. images/videos/documents, when the post is deleted.

Author:Alsvin (profile at wordpress.org)
WordPress version required:4.1
WordPress version tested:6.4.2
Plugin version:1.2
Added to WordPress repository:07-10-2021
Last updated:22-01-2024
Rating, %:66
Rated by:3
Plugin URI:https://www.alsvin-tech.com/
Total downloads:2 955
Active installs:600+
plugin download
Click to start download

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

FAQ
ChangeLog