Removing admin javascript

According to the load-scripts.php file, scripts that are not enqueued will not be loaded, so I don’t need to worry about it when using hooks like admin_enqueue_scripts and the wp_deregister_script function.

foreach( $load as $handle ) {
    if ( !array_key_exists($handle, $wp_scripts->registered) )
        continue;

However, my problem with jQuery week calendar was with the wp-jquery-ui-dialog style. So, to solve this problem I just had to:

wp_deregister_style('wp-jquery-ui-dialog');
$scripts = array('jquery-ui-core', 'jquery-ui-widget',
    'jquery-ui-mouse', 'jquery-ui-resizable', 'jquery-ui-draggable',
    'jquery-ui-button', 'jquery-ui-position', 'jquery-ui-dialog');
foreach ($scripts as $s)
    wp_deregister_script($s);