A CLI based media cleaner for WordPress
Clone the repository into your WordPress plugins folder and activate the plugin.
git clone https://github.com/calvinrodrigues500/wp-cli-media-cleaner.git
wp media-cleaner scan --report=<true|false>
Use the --report
flag to generate a report file in .txt
format.
The generated report file will be stored in the media cleaner plugin folder.
This command will delete all the unused media files found on the WordPress site.
wp media-cleaner delete
wp media-cleaner --help
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.