
內容簡介
Oli Media Cleaner 是一款專為 WordPress 設計的外掛,能夠掃描整個網站以找出不再使用的媒體檔案,並提供安全刪除的建議,幫助用戶有效管理媒體庫,釋放伺服器空間。
【主要功能】
• 批次掃描:每次處理 50 個附件以避免超時
• 白名單:保護即使未使用也想保留的檔案
• 批次操作:一次性刪除、恢復或永久刪除多個檔案
• CSV 匯出:將當前視圖匯出以便離線分析
• 自動清理:設定每日或每週自動掃描與刪除
• 進度條:實時顯示掃描進度
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Oli Media Cleaner finds the files of your media library that your site no longer uses, and lets you clean them up in five calm steps:
Scan. Nothing is changed during a scan. It runs in small steps, shows a progress bar, and can be paused and resumed.
Review. Look at the list (search, filters, sort, CSV export). Keep any file you want to protect.
Trash. Move the files you do not need to the plugin’s trash. Your site is checked again, file by file, just before each move. The files really leave your site: they are moved into a protected folder, so an image your site still needs shows up as missing and you can see it.
Restore. Changed your mind, or an image is missing on your site? Restore it from the trash in one click. The files go back to the same paths, byte for byte. You can restore at any time: nothing in the trash is ever deleted by WordPress or by this plugin on its own.
Empty the trash. Only files in the trash can be deleted permanently, and the plugin asks for confirmation first. Emptying the trash is the only step that erases files.
How the trash works
Moved, not flagged. Trashing a media moves its original file, the “-scaled” version, the original image, every generated size, the backup sizes and the .webp and .avif copies that exist on disk to wp-content/uploads/olimc-trash/. The media disappears from the Media Library while it is in the trash.
Exact restore. A manifest keeps the original path, size and MD5 of each moved file. Restoring checks the files, puts them back at the same paths and shows the media again. If a file with the same name was created in the meantime, nothing is overwritten and you get a clear message.
All or nothing for each media. If one file cannot be moved, the files already moved for that media are put back. If the uploads folder is not writable, the media is left as it is and you are told. If a request stops in the middle (time limit, memory, crash), the files are put back, or the next try finishes the job; no file is lost.
Shared files stay. A file that another media entry also uses is left in place, and the plugin never deletes it while the other one needs it.
Protected folder. The trash folder has an empty index.php, an .htaccess that denies access, and a random name that cannot be guessed. Nginx ignores .htaccess: there, the random name is the protection. The Trash tab shows previews through an admin-only address; the real location is never written in the page.
Empty = permanent. Emptying the trash deletes the media and its files for good, after a last live check of your site.
Multisite. Each site has its own trash folder, inside its own uploads folder.
What is read during a scan
Post and page content (all post types, blocks and classic editor), excerpts
Featured images, site logo and site icon
Custom fields: ACF (image, file, gallery, repeater, flexible content, group, clone, options pages) and other post, term, user and option metadata
WooCommerce product galleries and variations, Elementor data
Widgets, term thumbnails and term descriptions
Theme files and CSS (hard-coded image references)
What is not read
Files used only by a plugin that stores its data outside the WordPress database, in a format the scan cannot understand. When the plugin detects such a plugin, it tells you on the screen.
Anything on another site, a CDN or a remote storage.
Back up your site before cleaning. The trash keeps your files, but it is not a backup.
Built to be quiet and safe
No ads, no upsell, no rating request, no tracking, no remote call: nothing leaves your site.
Native WordPress screens (list table, tabs, notices), keyboard friendly, readable with a screen reader, usable on a phone.
The scheduled scan only refreshes the list. It never moves or deletes anything.
WordPress never purges the trash of this plugin (no 30-day countdown, EMPTY_TRASH_DAYS has no effect on it).
A file used by two media entries is never deleted while the other one needs it.
Fully translated: French (Canada and France).
