by Michael Cannon on WordPress.org

Settings screen
Use Remove Extra Media to remove extra media attachments from your selected post types.
In my use case, my testimonials widgets post types in some cases, for whatever reason, had up to 7 extra media attachments related to them. I wanted a quick way to clear those excess out. Considering that the only image or media attachment a testimonial should have was the featured, I simply removed all the others.
This tool works by removing the attachment relationship as this saves the media file in case it’s used by other attachments. Using wp_delete_attachment would delete the media file, which is something to avoid.
General
Testing
Compatibility & Reset
TBD
You can translate this plugin into your own language if it’s not done so already. The localization file remove-extra-media.pot can be found in the languages folder of this plugin. After translation, please send the localized file for plugin inclusion.