After checking out:
http://codex.wordpress.org/Function_Reference/remove_menu_page,
I successfully use the following code to hide some stuff from the menu:
add_action( 'admin_menu', 'my_remove_menu_pages' );
function my_remove_menu_pages() {
remove_menu_page('link-manager.php');
remove_menu_page('tools.php');
remove_menu_page('users.php');
remove_menu_page('edit-comments.php');
}
However both the "posts page" and a custom post types page seems to run on /wp-admin/edit.php
.
So I'm looking for a way to hide the posts menubar but still show the menu for a custom post type I've added.