Removing scripts that is preregistered by WordPress core will break plugins or themes that are dependent to them. To avoid this to happen, you need to re-register the style or script of the same handler with the scr value of false.

A common example is removing Open Sans. Sometimes, we may want to override the default Open Sans and register our own font or optimize the use of Google font by adding one or more font to the default one.

This short snippet will show you how to properly remove Open Sans without breaking things that are dependent to it.

function remove_open_sans() {
	wp_deregister_style( 'open-sans' );
	wp_register_style( 'open-sans', false );
add_action('wp_enqueue_scripts', 'remove_open_sans');