Remove snippets of JS from core

I used the following code and the bits of code no longer appear:

add_action( 'wp_head', 'remove_my_action' );
function remove_my_action(){
    remove_action( 'wp_footer', 'wp_underscore_playlist_templates', 0 );
    remove_action( 'admin_footer', 'wp_underscore_playlist_templates', 0 );
}