I found a way to list all the handles and after that, I chose all css I wanted to keep to do this function :
//call in my object
add_action( 'wp_enqueue_scripts', array( $this , "clean_styles" ), 9999 );
public function clean_styles(){
wp_debug_log();
global $wp_styles;
foreach( $wp_styles->queue as $style ) :
//List the css src and handle
//echo $wp_styles->registered[$style]->src . " - ";
//echo $wp_styles->registered[$style]->handle . "<br/>";
$handle = $wp_styles->registered[$style]->handle;
//array of css I want to keep
$css_exception = [ "wp-block-library", "wp-block-library-theme", "admin-bar" ]
if( !in_array( $handle, $css_exception ) ){
wp_dequeue_style( $handle );
wp_deregister_style( $handle );
}
endforeach;
//echo "<br/><br/>";
//List the css list I kept
/*foreach( $wp_styles->queue as $style ) :
echo $wp_styles->registered[$style]->src . "<br/>";
endforeach;*/
}