When customizing the WordPress backend for a client who doesn’t need a blog, you may want to hide or remove the default built-in post type to make things simpler.
Below is the code to remove the default post type from WordPress Dashboard. Note that this snippet only hides the menu item. List of posts and posts themselves are still available if you type the correct URL.