Changing all dashboard widgets to uncheck by default

Hey,

I am writing a plugin, which I intend to activate on all new WordPress installs in my development enviroment.

The plugin will set certain default settings, such as; deleting the sample post and page, changing the permalink structor, etc.

Now, I would like to uncheck all the dashboard widgets ( which manuel can be done under Screen Option ).

What function would do that for me? I have tried with:

add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets', 999);
function my_custom_dashboard_widgets() {
    global $wp_meta_boxes;

    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']);
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);
}

However, it removes the widgets completely. Also from the screen option. Yet, I do not want to remove them, just uncheck them.

I used

update_user_meta( 1, 'show_welcome_panel', 0 );

to uncheck the "Welcome to WordPress" widget, which worked fine. However, is such function available for the other widgets as well?

Thanks a lot!

Sincerely,
Mika