Autoremove Attachments
Remove child attachments when parent post, page or custom post type is deleted.
Use com cautela
Autoremove Attachments works, but test it on a staging site before relying on it in 2026. It runs on 2K+ sites, is rated 5/5 and was last updated 7 months ago, and scores 59/100 on our health check.
- Momentum — downloads up 29.7% vs the previous 30 days
- Testado apenas até WordPress 6.9 (mais recente é 7.1)
Como ele se acumula?
Lado a lado em instalações, atualizações, avaliações e suporteDownloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where Autoremove Attachments stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| anexo | #7 |
| custom post type | >100 |
| mídia | >100 |
| página | >100 |
| post | >100 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
Divisão de classificação
★★★★★★★★★★ 5 from 15 reviews
About Autoremove Attachments
Do Readme oficial · v1.3.1Descrição
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)
Important Considerations
- A soft delete that places your post, page, or custom post type in Trash will not trigger the removal of its child attachments. The purge happens when you empty your trash.
- When you delete a post, page or custom post type, we try to determine if its child attachments are used anywhere else on your website. If they are, we do not remove them, to prevent broken links.
- The additional checks before the automatic removal can be disabled from the Media Settings for improved performance on large websites with thousands of posts and media files.
- The plugin only removes files tracked by WordPress. Some poorly coded themes generate additional thumbnail sizes that are not tracked by WordPress and this always leads to orphan files left on your server.
Compatibility and Third-Party Support
- WooCommerce
- Easy Digital Downloads
- All themes and plugins that do things the WordPress way
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.
Instalação
Instalação automática
The automatic installation is the easiest option to install a plugin as WordPress handles the file transfers itself. To do an automatic install, log in to your WordPress dashboard and follow the steps below:
- Navigate to the Plugins menu and click “Add New”
- In the search field type “Autoremove Attachments” and click “Search Plugins”
- Once you have found the plugin install it by clicking “Install Now”
- Activate “Autoremove Attachments” from the “Plugins” menu
Manual Installation
The manual installation method involves downloading the plugin and uploading it on your server via SFTP. To do a manual install follow the steps below:
- Download the plugin to your local computer
- If downloaded as a zip archive extract it to your Desktop
- Upload the plugin folder to the /wp-content/plugins/ directory
- Activate “Autoremove Attachments” from the “Plugins” menu
Log de Changes
Version 1.3.1
- Minor improvements to admin notices
Version 1.3.0
- Minor code refactoring
- Language files updated
Version 1.2.1
- Fixed a bug that blocked changes to image sizes under Settings > Media
Version 1.2.0
- Minor code refactoring
- Extended support for WooCommerce and Easy Digital Downloads.
- New safety checks when you empty your trash – We now try to determine if the child attachments marked for removal are used anywhere else on your website. If they are, we do not remove them, to prevent broken links.
- New option under Settings > Media to disable the extra checks for improved performance on large websites with thousands of posts and media files. (where you might experience slow queries and timeouts when you empty your trash)
Other important considerations
- With the new safety checks enabled it’s fairly safe to reuse attachments between posts. But please, keep in mind, they are not fool-proof, especially if you store media file IDs or URLs in custom fields. That’s why we recommend you avoid reusing your attachments between posts, if possible.
- 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.
Version 1.1.2
- New filter added to allow developers define custom rules for controlling when the child attachments should be removed automatically
- Removed the old ‘autoremove_attachments_post_types’ filter in favor of the new one – instructions available in FAQ
Version 1.1.1
- New filter added to allow developers to change for what post types the child attachments should be removed automatically ( see FAQ for instructions )
- Fixed a minor incompatibility with WP-Sweep
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
Best Autoremove Attachments alternatives
Todos os plugins de anexos →FAQ
Autoremove Attachments: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: WordPress.org
Is Autoremove Attachments free?
Yes. Autoremove Attachments is free to download and use from the official WordPress.org plugin directory.
Is Autoremove Attachments safe to use in 2026?
Autoremove Attachments works, but test it on a staging site before relying on it in 2026. It runs on 2K+ sites, is rated 5/5 and was last updated 7 months ago, and scores 59/100 on our health check.
How many websites use Autoremove Attachments?
Autoremove Attachments is active on 2K+ WordPress websites and has been downloaded 41,182 times since it launched in July 2015. It was downloaded 1,027 times in the last 30 days.
Does Autoremove Attachments work with WordPress 7.1?
Autoremove Attachments is officially tested up to WordPress 6.9.12, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Autoremove Attachments need?
Autoremove Attachments requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Autoremove Attachments last updated?
The latest version, 1.3.1, was released on May 10, 2026 (7 months ago).
Who makes Autoremove Attachments?
Autoremove Attachments is developed and maintained by Polygon Themes.
What are the best alternatives to Autoremove Attachments?
The most popular alternatives to Autoremove Attachments are Fluent PDF Generator (20K+ installs), Attachment Pages Redirect (10K+ installs) and Disable Media Pages (9K+ installs).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito
