Update, remove or redirect the settings menu item.
<?php
return [
'wp-admin.$role|$username' => [
'settings',
'settings' => (string) $route,
'settings.title' => (string) $title,
'settings.icon' => (string) $dashicon,
],
];
Remove from menu;
<?php
return [
'wp-admin.$role|$username' => [
'settings',
],
];
Remove from menu and enforce a page redirect;
<?php
return [
'wp-admin.$role|$username' => [
'settings' => 'posts',
],
];