The PHP code in this post should be copied from the view raw link and pasted at the end of your child themes functions.php file.
The code only removes the menus from the backend and not the quick links in the admin bar menu on the front end for logged in users.
Removes WP SEO Plugins Admin Menu For All Users
This code will remove both the sidebar menu link and admin bar menu link for the WordPress SEO plugin for all User levels.
If you only want to remove the menu links for specific user roles and capabilities, you can by modifying these code snippets.
Removes WP SEO Plugins Admin Menu For Non Admins
Removes the admin menu only for users who aren’t administrators based on user capability. You could also use the user role.
Removes WP SEO Plugins Admin Menu For Specific User I.D & Capability
This code uses the user i.d and role or capability