How to hide a products filter with code?

I’d like to hide a filter from the frontend, but still have it active on the backend. Is there a way to do this with code?

Thanks!