The media library and settings for image sizes is a WordPress black hole. There is very little guidance on the optimal image sizes and we all have experienced the media library getting out of hand. In this video Imran Siddiq shares a code snippet and technique for cleaning up image sizes. If you want to try it out, definitely take a backup and test it on a staging site first. It is good of Imran to share his work.
