SOLVED! For those who might need this, the next is the custom ccs code that finally worked to remove the dashboard and profile links...
.usermenu .dropdown-menu-right a[aria-labelledby="actionmenuaction-1"], .usermenu .dropdown-menu-right a[aria-labelledby="actionmenuaction-2"] {
display: none;
}
.usermenu .dropdown-menu-right a[aria-labelledby="actionmenuaction-1"], .usermenu .dropdown-menu-right a[aria-labelledby="actionmenuaction-2"] {
display: none;
}