In Power Apps model-driven apps, you may want to dynamically hide specific option set values based on user roles, field values, or some custom logic. Microsoft provides a simple way to do this using the removeOption method.

JavaScript
formContext.getControl("crm_status").removeOption(9000254);

Note that it only hides the value from the UI on the client side, it doesn’t remove or restrict the value from being stored or retrieved in the underlying field data.

Learn more about the function in the official documentation.