the above example has the wrong comma type probably from copy and pasting. Here is the right type
//Disable Default Dashboard Widgets
function remove_dashboard_meta() {
remove_meta_box('dashboard_incoming_links', 'dashboard', 'normal');
remove_meta_box('dashboard_plugins', 'dashboard', 'normal');
remove_meta_box('dashboard_primary', 'dashboard', 'normal');
remove_meta_box('dashboard_secondary', 'dashboard', 'normal');
remove_meta_box('dashboard_quick_press', 'dashboard', 'side');
remove_meta_box('dashboard_recent_drafts', 'dashboard', 'side');
remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');
remove_meta_box('dashboard_right_now', 'dashboard', 'normal');
remove_meta_box('dashboard_activity', 'dashboard', 'normal');
remove_meta_box('rg_forms_dashboard', 'dashboard', 'normal');
remove_action('admin_notices', 'update_nag');
}
add_action('admin_init', 'remove_dashboard_meta');
The second answer is that to remove Elementor and its overview you use the following code:
remove_meta_box('e-dashboard-overview', 'dashboard', 'normal');
The WordPress developers feed widget can be removed with:
remove_meta_box('wpdev_feed_widget', 'dashboard', 'normal');