How to remove scripts/style added to customize_controls_enqueue_scripts hook by current active theme

You can use the global $wp_scripts and global $wp_styles; to get all registerd scripts and styles.

Eg.

enter image description here

All Scripts

// All Scripts
global $wp_scripts;

$all_scripts = array();

foreach( $wp_scripts->registered as $script ) :
    $all_scripts[$script->handle] = $script->src;
endforeach;

// echo '<pre>';
// print_r( $all_scripts );
// echo '</pre>';

All Styles

// All Styles
global $wp_styles;

$all_styles = array();

foreach( $wp_styles->registered as $style ) :
    $all_styles[$style->handle] = $style->src;
endforeach;

// echo '<pre>';
// print_r( $all_styles );
// echo '</pre>';

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)