Ad Inserter
94Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...
Remove child attachments when parent post, page or custom post type is deleted.
Autoremove Attachments is a WordPress plugin designed to help maintain a clean Media Library by automatically deleting media files that are child attachments when their parent post, page, or custom post type is deleted. This addresses the issue where WordPress retains unused media files after content removal, which can lead to orphaned files on the server.
The plugin only removes files that are tracked by WordPress and includes checks to ensure that attachments are not deleted if they are still in use elsewhere on the site. It is suitable for users who want to streamline their media management process, especially on sites with a large number of posts and media files.
Best for: This plugin is best for WordPress users who frequently delete posts and want to manage their media files efficiently.
What it does well
Where it falls short
Autoremove Attachments offers a practical solution for managing media files linked to deleted content, though it has some limitations regarding attachment tracking and soft deletes.
Polygon Themes's own description of Autoremove Attachments, lightly tidied.
Autoremove Attachments helps you keep the Media Library clean by deleting all media files attached as child attachments to a post, page, or custom post type when the parent is deleted.
By default, when you delete content from your website, regardless if it’s a post, a page, a product, or any kind of post type, WordPress keeps the media files previously associated with it, even if after the removal of your content they are not used anywhere else.
Autoremove Attachments tries to solve this problem by automating the removal of all media files that have a child-parent relationship with the removed content. (so you don’t have to manually track and remove orphan files left on your server)
If you use a plugin to optimize and clean your database of revisions, trashed posts, etc, make sure you use one that relies on native WordPress functions to perform the maintenance tasks. We recommend WP-Sweep.
Other plugins for custom content structures.
Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...
ACF helps customize WordPress with powerful, professional and intuitive fields. Proudly powering over 2 millio...
Checkout Field Editor (Checkout Manager) for WooCommerce – The best WooCommerce checkout manager plugin to man...
Easily reorder posts, pages, custom post types, and taxonomies with intuitive drag-and-drop sorting in the Wor...
The #1 user-rated activity log plugin for event logging, activity monitoring and change tracking.
Admin UI for creating custom content types like post types and taxonomies