I found the solution. The style name must be without the suffix -css
function remove_global_styles(){
wp_deregister_style( 'dashicons' );
wp_deregister_style('post-views-counter-frontend');
}
add_action( 'wp_enqueue_scripts', 'remove_global_styles' );