I have a site running where the database has almost 2 mill instances in wp_postmeta table with metakey: _wp_attachment_metadata
It's a relative small site, but in the image gallery it generates some strange files when uploading an image, perhaps it's here it generates all the instances in the table see attached screenshot of mediagallery.
The file mysql.sql located in wp-content/uploads are 3,7 Gb, and filling up the space on the server. Is there anyway to remove all the unused instances and find out why it generates so many files when uploading an image?
I have granted access on the site via wpmu dashboard to sirasacademy . com