robido.com
How to Write a Custom WP CLI Script to Remove Old Images and Attachments from WordPress Posts - Robido
This tutorial shows you how to write a custom WP CLI script to remove old images and attachments from WordPress posts, and Includes a WP CLI boilerplate.