Linux 软件免费装
Banner图

Shift Media Library Cleanup

开发者 shiftinnovation
更新时间 2026年10月16日 18:04
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

unused images clean media library media cleaner image cleanup delete unused media

下载

1.0.1 1.0.2

详情介绍:

Media cleaners have one big problem: false positives. An image looks unused, you delete it, and a page breaks. Shift Media Library Cleanup is built around the opposite promise: when in doubt, a file is kept, and nothing is ever deleted before you had the chance to undo it. Why it is different Where it looks for your media Drafts, private posts, revisions and trashed posts count as usage too: restoring any of them will never bring back a broken image. Built to be safe for your site Page builders not supported yet If the plugin detects a page builder it cannot read yet (for example Divi, Bricks, Oxygen or Beaver Builder), it shows a warning and asks for an extra confirmation before quarantining files. Review those results carefully, and use the quarantine period to check your pages.

安装:

  1. Install Shift Media Library Cleanup from Plugins > Add New, or upload the plugin folder to /wp-content/plugins/.
  2. Activate it from the Plugins screen.
  3. Go to Media > Media Cleanup and click Scan media library.
  4. Review the Not found in use tab. Open Why? on any file to see what was checked.
  5. Select files and click Move to quarantine. Browse your site for a few days, then let the quarantine expire or delete files permanently from the Quarantine tab.
We recommend a backup before any cleanup, as with any tool that removes files.

屏幕截图:

  • The "Why?" panel explains what was checked for every file.
  • Moving files to quarantine, with a clear explanation of what will happen.
  • The Quarantine tab: restore or delete permanently, one file or many at once.

升级注意事项:

1.0.2 Updated plugin author name. No functional changes. 1.0.1 Finds media used in WPBakery Raw HTML elements. Run a new scan after updating. 1.0.0 First public release.

常见问题:

Does the plugin delete files automatically?

No. A scan never changes anything. Files only leave your Media Library when you move them to quarantine, and they are deleted permanently only after the quarantine period (30 days) or when you delete them yourself from the Quarantine tab.

What happens to a file in quarantine?

Its files are moved to a private folder inside your uploads directory and the media item is hidden from the Media Library. Its ID, title, alt text and other details are kept, so a restore brings everything back exactly as before.

How do I know a quarantined file is still needed?

When a visitor's browser requests a quarantined file, the plugin counts it and shows the page that requested it in the Quarantine tab. This works when missing files are handled by WordPress, which is the case on most Apache servers and many nginx setups; some servers answer missing image requests on their own, and those requests cannot be seen.

Can the plugin miss a file that is in use?

It is designed to make that very unlikely, but it can happen with images loaded from places outside your site (another website, an email already sent, a mobile app) or by a plugin storing image IDs in a format nobody else uses. That is why removal always goes through the quarantine first.

What about files that are not in the Media Library?

The plugin works with media items registered in the Media Library. Files copied to the uploads folder by other means are not listed and never touched.

Why does the scan say it is too old?

Moving files to quarantine requires a scan from the last 24 hours, so recent changes to your site are taken into account. Just run a new scan: it continues in the background.

What happens when I uninstall the plugin?

Everything in quarantine is restored first, then the plugin removes its own data. If a file cannot be restored because a new file now has the same name, its data is kept so that reinstalling the plugin shows it again.

Does it work on multisite?

Yes. Each site of the network has its own scan and quarantine.

更新日志:

1.0.2 1.0.1 1.0.0