Copy this code and paste it in your HTML
add_action('admin_menu', 'remove_menus');
function remove_menus () {
$restricted = array( __
('Posts'), __
('Comments'), __
('Media'), __
('Links'), __
('Pages'), __
('Appearance'), __
('Tools'),__
('Contact'),__
('Xarxa'));
if(in_array($value[0] != NULL?
$value[0]:"" , $restricted)){unset($menu[key($menu)]);
} }
}