There are multiple ways.
1. Do not add it to the build list of the builder unit type in the first place (no icon).
2. Use a trigger to disable the availability of that unit type for a certain player (no icon).
3. Make the unit type require an upgrade or unit type (icon but disabled).
There is no way, that I know of, to remove a buildable unit type from only a specific unit, just all units of a certain player. You can however remove hired units at will if the selling structure is configured to support it.