Clean Unused Medias Plugin
Clean Unused Medias, another simple way to delete the medias you don't need anymore.
Clean Unused Medias, another simple way to delete the medias you don’t need anymore.
List the medias you don’t used anymore.
Works with post, page, custom post type, and ACF (Advanced Custom Fields).
Filters available :
- The media used as site favicon
- The medias used as post thumbnail
- The medias uploaded in a post (and so related to it)
- The medias used in ACF fields (image and file)
- The medias’ URL inserted or used in a post content
- The medias’ URL inserted or used in
wp_postmeta
- The medias’ URL inserted or used in
wp_usermeta
- The medias’ URL inserted or used in
wp_options
Page dedicated to this plugin : https://xuxu.fr/2016/09/28/supprimer-les-fichiers-non-utilises-sous-wordpress/
You can contact me on :
- My blog: https://xuxu.fr/contact
- My Twitter account: https://twitter.com/xuxu
You can donate here ^_^ : http://goo.gl/SORljr
Installation
- Extract and upload the directory
clean-unused-medias
to the /wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Go to Medias -> Clean Unused Medias menu.
- Enjoy.
Screenshots
Dashboard
This media is used in the post content
This media is used as a featured image / post thumbnail
This media is used anywhere
You can check their status in the media list
And know if the media is used somewhere
FAQ
Why a crawler ? Because the feature to check if a media url is used in a post content take a very long time. So caching those medias is the best way to keep the interface fast and furious.
Changelog
1.10
- Clean and fix scripts
- Test up with WordPress 5.7.2
1.09
- Test with WordPress 4.7.1 : no problem o/
1.08
- Fix log where the media is used
- Improve the crawler
- Hashtags and popin details available in media library
1.07
- Log where the file is used
- Display where the media is used
- Fix ACF check error
1.06
- Add more filters
- Improve the crawl and fix some errors
- Add some notices
1.05
- Site favicon are now not considered as unused
- Improve the crawler : search now in
wp_options
, wp_postmeta
and wp_usermeta
1.04
- Check if the media ID is used in the content with the native WordPress shortcode [gallery]
- Minor user interface changes
- Add plugin icon 🙂
1.03
- Add progress bar
- Refresh results after deleting all medias
- Pause and resume the crawler
- Filter the results with keyword
- Resume the crawl if new medias were uploaded
1.02
- Make it really Translate ready! :p
1.01
- Fix security issues
- Translate ready!
- Add French translation
- Add WordPress notices
- Minor changes
1.00
Welcome!