Is it possible to remove default images from Wordpress? More specifically, those create by WooCommerce? I'm building a completely custom theme, for which I have no need for any of the WC image sizes, so I'd rather not have to store these on our server. I have experimented with the codex remove_image_size() in the below code, however this breaks the media library.
Thanks.
// Remove default WC image sizes
function wpdocs_remove_plugin_image_sizes() {
remove_image_size( 'woocommerce_thumbnail' );
remove_image_size( 'woocommerce_single' );
remove_image_size( 'woocommerce_gallery_thumbnail' );
remove_image_size( 'shop_catalog' );
remove_image_size( 'shop_single' );
remove_image_size( 'shop_thumbnail' );
}
add_action('init', 'wpdocs_remove_plugin_image_sizes');