Remove All, Published and Trashed Post Views in Custom Post Type

Further down on the page you linked to is this comment:

Similar views can be edited by hooking into ‘views_’ . $screen->id where $screen is the global $current_screen (or get_current_screen()). Draft, Pending, Mine and Sticky could all be removed in a similar manner.

When you’re editing a post, you’re on the “edit-post” screen, so the action you use is views_edit-post. If you’re working with a custom post type called “gallery,” the edit screen is “edit-gallery” and you’d hook into the views_edit-gallery action.

In your case I’d do the following:

function remove__views( $views ) {
    unset($views['all']);
    unset($views['publish']);
    unset($views['trash']);

    return $views;
}

add_action( 'views_edit-post',  'remove_views' );
add_action( 'views_edit-movie', 'remove_views' );

This will remove “all”, “publish”, and “trash” from both posts and the custom post type “movie.” Removing these views from other post types is as simple as adding the following line:

add_ection( 'views_edit-{post-type-slug}', 'remove_views' );

Just replace {post-type-slug} with the name of your custom post type.