Remove default image sizes

Remove any of the default image sizes. WordPress will stop generating them automatically when uploading a picture.


update_option( 'large_size_h', 0 );
update_option( 'large_size_w', 0 );
//uncomment to remove medium size
//update_option( 'medium_size_h', 0 );
//update_option( 'medium_size_w', 0 );
//uncomment to remove thumbnail size
//update_option( 'thumbnail_size_h', 0 );
//update_option( 'thumbnail_size_w', 0 );