Title: Auto Attachments Cleaner
Author: Stefano
Published: <strong>2024 年 12 月 22 日</strong>
Last modified: 2025 年 3 月 1 日

---

搜索插件

![](https://ps.w.org/auto-attachments-cleaner/assets/banner-772x250.png?rev=3211920)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/auto-attachments-cleaner/assets/icon-256x256.png?rev=3211920)

# Auto Attachments Cleaner

 作者：[Stefano](https://profiles.wordpress.org/stefacchio/)

[下载](https://downloads.wordpress.org/plugin/auto-attachments-cleaner.1.0.4.zip)

 * [详情](https://cn.wordpress.org/plugins/auto-attachments-cleaner/#description)
 * [评价](https://cn.wordpress.org/plugins/auto-attachments-cleaner/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/auto-attachments-cleaner/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/auto-attachments-cleaner/#developers)

 [支持](https://wordpress.org/support/plugin/auto-attachments-cleaner/)

## 描述

Automatically deletes attachments (images, videos, files etc…) linked to a page,
post or custom post type when it is deleted.
 Support Woo Commerce and all plugins
that support Custom Post Types.

This plugin deletes also relative thumbnails of images.

Goodbye junk, orphaned and forgotten files clogging up server space over time!

#### Author Plugin Website

Here you can find other premium plugins:
 [Stefano Fattori – WordPress Plugins](https://www.stefanofattori.it/wordpress/plugins/)

## 屏幕截图

 * [[
 * Post deleted notice
 * [[
 * Plugin settings
 * [[
 * Where plugin works (trash)
 * [[
 * Warning notice on Trash Page

## 安装

 1. Upload `auto-attachment-cleaner` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Select the post types on which the plugin should work on the page `Settings > Auto
    Attachments Cleaner` and save settings

## 常见问题

### When are attachments deleted?

When the post is permanently deleted from the trash or the trash is emptied

### Are all thumbnails created by wordpress also deleted?

Yes, a native WordPress function is used for deleting images, which also deletes
all thumbnails created

### Is Woo Commerce supported?

Yes Woo Commerce is supported, all plugin that works with Custom Post Type are compatible.

## 评价

![](https://secure.gravatar.com/avatar/d2ddc9ed9b33207eb55a2fbebc6dedd4908d0451ba43787dcf28adf387415b25?
s=60&d=retro&r=g)

### 󠀁[Really useful!](https://wordpress.org/support/topic/really-useful-318/)󠁿

 [jessica1490](https://profiles.wordpress.org/jessica1490/) 2025 年 3 月 8 日

I’ve been looking for this feature for years! I’ve finally found it… really useful
plugin, well done and working, so I don’t have to delete each file manually any 
more!

![](https://secure.gravatar.com/avatar/0750c31ad2e4acbd1e971a549974bf676de83ffafccd57e2dd7e2139fdd9e88d?
s=60&d=retro&r=g)

### 󠀁[Very useful](https://wordpress.org/support/topic/very-useful-3582/)󠁿

 [Jose Mortellaro](https://profiles.wordpress.org/giuse/) 2025 年 2 月 28 日 1 回复

Very useful plugin! I recommend checking whether the images your plugin is about
to delete are attached to other posts. Otherwise, you might accidentally remove 
images you intended to keep. Additionally, it’s best to display a clear warning 
message before deletion to prevent unintended data loss.

![](https://secure.gravatar.com/avatar/91db05863fab71aeade0dec63660fe332672727d0f7d5dac4fec60fb76f8547e?
s=60&d=retro&r=g)

### 󠀁[Best plugin ever!](https://wordpress.org/support/topic/best-plugin-ever-503/)󠁿

 [Stefano](https://profiles.wordpress.org/stefacchio/) 2025 年 1 月 30 日

Absolutely a must-have for not taking up unnecessary server space. it should be 
integrated into wordpress! Deletes attachments automatically when articles are deleted.

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/auto-attachments-cleaner/reviews/)

## 贡献者及开发者

「Auto Attachments Cleaner」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Stefano ](https://profiles.wordpress.org/stefacchio/)

「Auto Attachments Cleaner」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/auto-attachments-cleaner/contributors)
为本插件所做的贡献。

[帮助将「Auto Attachments Cleaner」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/auto-attachments-cleaner)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/auto-attachments-cleaner/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/auto-attachments-cleaner/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/auto-attachments-cleaner/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/auto-attachments-cleaner/)。

## 更新日志

#### 1.0.4

 * [NEW] – Introduced Warning notice on Empty Trash button and on post row actions
   near to ‘permanently delete’ link

#### 1.0.3

 * [FIX] – Bug Fix

#### 1.0.2

 * [OPTIMIZATION] – Improve performance query

#### 1.0.1

 * [FIX] – Fixed settings link into plugins page
 * [FIX] – Fixed notice when delete multiple posts

#### 1.0.0

 * Plugin created

## 额外信息

 *  版本 **1.0.4**
 *  最后更新：**1 年前**
 *  活跃安装数量 **70+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/auto-attachments-cleaner/) 和 [Italian](https://it.wordpress.org/plugins/auto-attachments-cleaner/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/auto-attachments-cleaner)
 * 标签
 * [attachments](https://cn.wordpress.org/plugins/tags/attachments/)[custom posts type](https://cn.wordpress.org/plugins/tags/custom-posts-type/)
   [media](https://cn.wordpress.org/plugins/tags/media/)[pages](https://cn.wordpress.org/plugins/tags/pages/)
   [posts](https://cn.wordpress.org/plugins/tags/posts/)
 *  [高级视图](https://cn.wordpress.org/plugins/auto-attachments-cleaner/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/auto-attachments-cleaner/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/auto-attachments-cleaner/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/auto-attachments-cleaner/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/auto-attachments-cleaner/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/auto-attachments-cleaner/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/auto-attachments-cleaner/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/auto-attachments-cleaner/reviews/)

## 贡献者

 *   [ Stefano ](https://profiles.wordpress.org/stefacchio/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/auto-attachments-cleaner/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.stefanofattori.it/donazione-wordpress-community-temi-plugins/)