Autoremove Attachments
by Polygon Themes 5 (15 reviews)

Autoremove Attachments

Remove child attachments when parent post, page or custom post type is deleted.

Autoremove Attachments ranks #4,132 among WordPress.org plugins with 3,000+ active installations, is #461 of 6,007 in the Media category, a 5/5 rating from 15 reviews, and was last updated May 10, 2026. Data from WordPress.org, refreshed twice daily — see methodology.

Tested up to WP 6.9 (Current: 7.0.2)
vtrunk Current Version vtrunk
Updated 2 months ago Last Update on 10 May, 2026
Refreshed 6 hours ago Last Refreshed on
#461 of 6,007 in Media Top 10% by installs Downloads -10.1% this week
View on WordPress.org
Rank
#4,132
+1 this week
Active Installs
3K+
No change
KW Avg Position
89.3
0.5 better
Downloads
34.7K
+2 today
Support Resolved
100%
No change
Rating
100%
Review 5 out of 5
5 (15 reviews)

Next Milestone 4K

Total Progress 81.4%
3K+ 4K+
452
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 186 more installs to reach 4K+

Rank Changes

4,127 4,135 4,143 4,150 4,158 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026 30-07-2026
4,122 4,133 4,143 4,154 4,164 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026 30-07-2026
4,107 4,122 4,137 4,151 4,166 30-06-2026 01-07-2026 02-07-2026 03-07-2026 04-07-2026 05-07-2026 06-07-2026 07-07-2026 08-07-2026 09-07-2026 10-07-2026 11-07-2026 12-07-2026 13-07-2026 14-07-2026 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026 30-07-2026
4,098 4,115 4,133 4,150 4,167 01-05-2026 02-05-2026 03-05-2026 04-05-2026 05-05-2026 06-05-2026 07-05-2026 08-05-2026 09-05-2026 10-05-2026 11-05-2026 12-05-2026 13-05-2026 14-05-2026 15-05-2026 16-05-2026 17-05-2026 18-05-2026 19-05-2026 20-05-2026 21-05-2026 22-05-2026 23-05-2026 24-05-2026 25-05-2026 26-05-2026 27-05-2026 28-05-2026 29-05-2026 30-05-2026 31-05-2026 01-06-2026 02-06-2026 03-06-2026 04-06-2026 05-06-2026 06-06-2026 07-06-2026 08-06-2026 09-06-2026 10-06-2026 11-06-2026 12-06-2026 13-06-2026 14-06-2026 15-06-2026 16-06-2026 17-06-2026 18-06-2026 19-06-2026 20-06-2026 21-06-2026 22-06-2026 23-06-2026 24-06-2026 25-06-2026 26-06-2026 27-06-2026 28-06-2026 29-06-2026 30-06-2026 01-07-2026 02-07-2026 03-07-2026 04-07-2026 05-07-2026 06-07-2026 07-07-2026 08-07-2026 09-07-2026 10-07-2026 11-07-2026 12-07-2026 13-07-2026 14-07-2026 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026 30-07-2026
Current #4,132
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 20 30 40 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026 30-07-2026
0 10 20 30 40 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026 30-07-2026
0 10 20 30 40 30-06-2026 01-07-2026 02-07-2026 03-07-2026 04-07-2026 05-07-2026 06-07-2026 07-07-2026 08-07-2026 09-07-2026 10-07-2026 11-07-2026 12-07-2026 13-07-2026 14-07-2026 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026 30-07-2026
0 10 20 30 40 50 01-05-2026 04-05-2026 07-05-2026 10-05-2026 13-05-2026 16-05-2026 19-05-2026 22-05-2026 25-05-2026 28-05-2026 31-05-2026 03-06-2026 06-06-2026 09-06-2026 12-06-2026 15-06-2026 18-06-2026 21-06-2026 24-06-2026 27-06-2026 30-06-2026 03-07-2026 06-07-2026 09-07-2026 12-07-2026 15-07-2026 18-07-2026 21-07-2026 24-07-2026 27-07-2026 30-07-2026
0 10 20 30 40 50 30-07-2025 11-08-2025 23-08-2025 04-09-2025 16-09-2025 28-09-2025 10-10-2025 22-10-2025 03-11-2025 15-11-2025 27-11-2025 09-12-2025 21-12-2025 02-01-2026 14-01-2026 26-01-2026 07-02-2026 19-02-2026 03-03-2026 15-03-2026 27-03-2026 08-04-2026 20-04-2026 02-05-2026 14-05-2026 26-05-2026 07-06-2026 19-06-2026 01-07-2026 13-07-2026 25-07-2026 30-07-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

5.0
15 reviews
Overall 100%
5
15 (100%)
4
0 (0%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Tracked Keywords

Showing 4 of 4
Keyword Position Change Type Updated
custom post type 21 Tag 9 hours ago
attachment 22 Tag 9 hours ago
media 157 Tag 9 hours ago
post 157 Tag 9 hours ago

Unlock Keyword Analytics

Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.

  • Full keyword position tracking
  • Historical ranking data
  • Competitor keyword analysis
Upgrade to Pro

Support Threads Overview

Resolved
Unresolved
1
Total Threads
1
Resolved
0
Unresolved
100%
Resolution Rate

Security History

Source: WPVulnerability

No known vulnerabilities on record for Autoremove Attachments. Checked 6 hours ago.

Frequently Asked Questions

Common questions about Autoremove Attachments

Yes, it does. It works with posts, pages and custom post types. All child attachments are removed when the parent is deleted.
The files are removed when the parent post, page, or custom post type is permanently removed. A soft delete that places it in Trash will not trigger the removal of your attachments. The purge happens when you empty your trash.
Yes, you can. By default, all media files attached to a post, page or custom post type are removed automatically. If you need granular control you can use the filter autoremove_attachments_allowed to define custom rules for controlling when the child attachments should be removed automatically. Here is an example on how you can remove the attachments only for specific custom post types: function autoremove_attachments_custom_rule() { // Global variables. global $post_id; // Variables. $post_type = get_post_type( $post_id ); $allowed_post_types = array( 'project', 'product', ); // Default return value. $allowed_to_remove = false; // Custom rules for removing attachments. if ( in_array( $post_type, $allowed_post_types ) ) { $allowed_to_remove = true; } // Return. return $allowed_to_remove; } add_filter( 'autoremove_attachments_allowed', 'autoremove_attachments_custom_rule' ); The returned value should be true for the cases in which you want the attachments removed. (false otherwise)
Depending on how you use the plugin, the answer can be either yes, or no. If you keep the plugin running with the additional checks enabled, you have no restrictions on how you can use your attachments. (you can use your media files in multiple locations, without the fear of broken links caused by their removal) If you disable the additional checks, you need to make sure you don't reuse your media files between posts. If you do and the parent is deleted, you will end up with broken links in all the other locations where the removed attachments were used. Regardless of how you use the plugin, if you need to use an attachment over and over again, upload it from the global Media Library menu. ( Media > Add New ) This way, it won't be attached as a child to a specific post, page, or custom post type and you will be able to use it without restrictions.

Sign In / Register

You need to sign in or register to use this feature.