{"id":18944173,"date":"2026-06-21T07:43:37","date_gmt":"2026-06-21T07:43:37","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/regenerating-all-images\/"},"modified":"2026-06-21T10:38:51","modified_gmt":"2026-06-21T10:38:51","slug":"regenerating-all-images","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/regenerating-all-images\/","title":{"rendered":"regenerating all images"},"content":{"rendered":"<p>I&#8217;m looking for a way to bulk remove files too large for my website. In the past all kinds of sizes were uploaded, when I took over I put up a maximum of 1200x1200px, but a lot of images still have their old sizes. I had hoped the following command would clean those up, but when I run it the files larger than the set dimensions remain.<\/p>\n<p><code>wp media regenerate 408339 --delete-unknown<\/code><\/p>\n<p>I have also added this to my theme: <code>add_image_size( &#039;maximale_grootte_afbeelding&#039;, 1200, 1200 );<\/code><\/p>\n<p>Help?<\/p>\n","protected":false},"template":"","class_list":["post-18944173","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18944173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18944173\/revisions"}],"predecessor-version":[{"id":18944226,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18944173\/revisions\/18944226"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18944173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}