You trim a site down to the one theme you use, a major release arrives, and a fresh default theme has moved in.
The core upgrader copies in themes and plugins that are new in that release. This constant tells it not to:
define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', true );
Put it above the “stop editing” comment. Core itself still updates as usual; only the extra copies are skipped.
It is a small thing, but I like a site that contains what I put there. Every unused theme is code that sits on the server and needs updating, and a forgotten one is exactly the sort of thing that goes stale.
It doesn’t remove anything already installed. Clean those up once, in Appearance or with WP-CLI, after checking what’s active:
wp theme list
Consider keeping one recent default theme anyway. WordPress can fall back to it when your own theme crashes, and it is the standard way to find out whether a problem is caused by your theme. Without any fallback, a broken theme leaves you with a white page and fewer options.
The constant concerns the core update step. Updates to themes you already have still arrive through the normal theme updater, including for any default theme you decided to keep. If you manage code with Git or Composer, you probably want this on all environments.
Further reading: WordPress developer docs: wp-config.php