Title: Delete Thumbnails
Author: David Sword
Published: <strong>2014 年 11 月 7 日</strong>
Last modified: 2017 年 7 月 6 日

---

搜尋外掛

![](https://ps.w.org/delete-thumbnails/assets/banner-772x250.jpg?rev=1685851)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/delete-thumbnails/assets/icon-256x256.jpg?rev=1685851)

# Delete Thumbnails

 由 [David Sword](https://profiles.wordpress.org/davidsword/) 開發

[下載](https://downloads.wordpress.org/plugin/delete-thumbnails.2.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/delete-thumbnails/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/delete-thumbnails/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/delete-thumbnails/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/delete-thumbnails/#developers)

 [技術支援](https://wordpress.org/support/plugin/delete-thumbnails/)

## 外掛說明

#### Delete thumbnails & resized images from your Media Library

 * Delete some or all of WordPress’s resized images (thumbnails, medium, and large,
   plus extra ones Plugins/Themes make secretly)
 * This can clear thousands of unwanted files from your uploads directory
 * Useful if you’ve had lots of different theme/plugins over the years, and inadvertently
   accumulated a vast number of resized images that are no longer used by your site

#### Take careful note

 1. Deleting is permanent
 2. You can use [this plugin](https://wordpress.org/plugins/regenerate-thumbnails/)
    to regenerate your Media Library after (as WordPress will need the default sizes)

#### Please Note

 * 🍺 This is a **recently revived and re-written plugin**, the bad reviews were
   correct for the old versions, but not current version. If you experience any 
   issues, please open a support request, I’m happy to help fix any issues and help
   plugin grow.

### Road Map

#### The current todo list

 * [ ] Add css animation/color to nag inputs when clicking disabled button
 * [ ] Add `count($this->library)` result as ‘exempt’ in main info banner to assure
   Media Library items are safe
 * [ ] Add size range filters (ie: delete resized that are within x – y restraints)
 * [ ] Make `View` link work off of a Lightbox instead of a new browser tab
 * [ ] Please add any additional requests into the Support tab.

## 螢幕擷圖

 * [[
 * List of all resized images in uploads directory with options to select and delete

## 安裝方式

 1. Install the plugin from your Plugin browser, or download the plugin and extract
    the files and upload `delete-thumbnails` to your `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. View the _Delete Thumbnails_ interface under _Tools_ in your WordPress Admin

## 常見問題集

  Installation Instructions

 1. Install the plugin from your Plugin browser, or download the plugin and extract
    the files and upload `delete-thumbnails` to your `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. View the _Delete Thumbnails_ interface under _Tools_ in your WordPress Admin

  What parameters are used to determine if a image is resized?

After looking at all files in the WordPress uploads directory, a file is determined
as resized when three criteria are meet:

 1. It’s an image
 2. The file URL is not a main WordPress Media Library file
 3. The filename ends with `-###-###.`

  What is this warning about `chmod` about?

The method of deletion only works when the server allows PHP to edit the folders
contents. CHMOD is the permission settings for files and folders. If you’ve received
a warning of this, the CHMOD on the upload directory is too low.

  It says I have no resized images, but I do

Please note this is a new plugin (rewritten summer 2017), this plugin was developed
and tested in only two server environments – variables on your setup may of not 
been considered while developing. Please open a request in the Support tab and provide
as much info as you’re willing to give to help resolve this issue and ensure this
plugin works on all setups:

 * WordPress & PHP version
 * Location of directory
 * Wether or not files are stored in year/month sub folders
 * ect.

  How do I backup my files?

The plugin insists on backups as it removes files permanently, you can ignore and
bypass, however you should always [backup your WordPress installation](https://codex.wordpress.org/WordPress_Backups#Backing_Up_Your_WordPress_Site)

## 使用者評論

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

### 󠀁[Great!](https://wordpress.org/support/topic/great-8978/)󠁿

 [kotofey](https://profiles.wordpress.org/kotofey/) 2018 年 12 月 19 日

One of the only plugins which work on multisite. Good job! UPD: tested on WP 5.0.1

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

### 󠀁[It does what it promise.](https://wordpress.org/support/topic/it-does-what-it-promise-2/)󠁿

 [Dugonja](https://profiles.wordpress.org/h3llas/) 2018 年 12 月 14 日

Simple, effective and fast.

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

### 󠀁[Decrease inodes](https://wordpress.org/support/topic/decrease-inodes/)󠁿

 [marcioshibukawa](https://profiles.wordpress.org/marciovideo/) 2018 年 11 月 27
日

It has excluded more than 5000 images that have been resized on my site, saving 
space on my host.

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

### 󠀁[Working Perfect](https://wordpress.org/support/topic/working-perfect-26/)󠁿

 [p.zehfroush](https://profiles.wordpress.org/pzehfroush/) 2018 年 9 月 8 日

This plugin solve my Problem, thank you so much and Good job.

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

### 󠀁[Does what it says](https://wordpress.org/support/topic/does-what-it-says-684/)󠁿

 [Kash](https://profiles.wordpress.org/jdwel/) 2018 年 3 月 22 日 1 則留言

Really helpful plugin A future development would be to choose what type of thumbnail
to delete. Still perfect as it is.

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

### 󠀁[Awesome!](https://wordpress.org/support/topic/awesome-5342/)󠁿

 [bbimail](https://profiles.wordpress.org/bbimail/) 2018 年 1 月 17 日

All should add it to renew thumbs – 245mb deleted! Thank you!

 [ 閱讀全部 15 則使用者評論 ](https://wordpress.org/support/plugin/delete-thumbnails/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Delete Thumbnails〉的開發相關工作。

參與者

 *   [ David Sword ](https://profiles.wordpress.org/davidsword/)

[將〈Delete Thumbnails〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/delete-thumbnails)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/delete-thumbnails/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/delete-thumbnails/)，或透過 
[RSS](https://plugins.trac.wordpress.org/log/delete-thumbnails/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/delete-thumbnails/)。

## 變更記錄

#### 2.2

 * July 6, 2017
 * Fixed 3 instances of PHP shorttags which’d break plugin on most server setups

#### 2.1

 * June 27, 2017
 * Removed image header argument (seeing if image was compressed at WordPress’s 
   default 82%) as it only works with resized JPG’s, not PNGs

#### 2.0

 * June 25, 2017
 * Project revival
 * Code overhaul/rewrite
 * Added better assets
 * Much cleaner and WordPress native looking interface, no more code-line look
 * Readme, UI, and inline documentation corrected and improved
 * Improved logic of deletion
 * Improved logic for form submission with low `max_input_vars` values in mind
 * better detection of thumbnails & cross checking media library attachments

#### 1.0

 * Sept 29, 2014
 * Public Launch

#### 0.1

 * July 6, 2014
 * Initial Build, private use

## 中繼資料

 *  版本 **2.2**
 *  最後更新 **9 年前**
 *  啟用安裝數 **200+**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.8.28**
 *  語言
 * [English (US)](https://wordpress.org/plugins/delete-thumbnails/)
 * 標籤:
 * [delete](https://tw.wordpress.org/plugins/tags/delete/)[images](https://tw.wordpress.org/plugins/tags/images/)
   [library](https://tw.wordpress.org/plugins/tags/library/)[media](https://tw.wordpress.org/plugins/tags/media/)
   [thumbnails](https://tw.wordpress.org/plugins/tags/thumbnails/)
 *  [進階檢視](https://tw.wordpress.org/plugins/delete-thumbnails/advanced/)

## 評分

 3.9 星，滿分為 5 星

 *  [  11 個 5 星使用者評論     ](https://wordpress.org/support/plugin/delete-thumbnails/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/delete-thumbnails/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/delete-thumbnails/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/delete-thumbnails/reviews/?filter=2)
 *  [  4 個 1 星使用者評論     ](https://wordpress.org/support/plugin/delete-thumbnails/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/delete-thumbnails/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/delete-thumbnails/reviews/)

## 參與者

 *   [ David Sword ](https://profiles.wordpress.org/davidsword/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/delete-thumbnails/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://www.redcross.ca/donate/)