For instance, if we don't need comments on the site, we can remove the Comment type by disabling module "Comments".
2. Disabling types for some specific endpoint permalink
We can also remove a schema type by disabling access to all fields which return that type. To do this, we must add the access control rule "Disable access" for the field in some access control list (ACL), make it private, and assign the ACL to the corresponding schema configuration.
This will remove the type only for the selected schemas.
For instance, if we don't need comments on the site, we can remove the Comment type by disabling access to all fields from the Commentable interface (which is implemented by all types having comments, such as Post, Page, CustomPost, etc).