Remove Admin Sections for Specific (Custom) Role

functions.php

/*////////////////////////////////////////////////
 //
 //	Remove dashboard, posts, pages, comments, tools for PJ editors
 //
 ////////////////////////////////////////////////*/

function pmo_remove_menu_pages() {
    global $user_ID;
        if ( current_user_can( 'pj_editor' ) ) {
            remove_menu_page( 'index.php' );
            remove_menu_page( 'edit.php' );
            remove_menu_page( 'edit.php?post_type=page' );
            remove_menu_page( 'edit-comments.php' );
            remove_menu_page( 'tools.php' );
        }
}
add_action( 'admin_init', 'pmo_remove_menu_pages' );