How to remove "train [unit]" from barracks

Hey, I need to make some units unavailable to train at the barracks like spectres, but also units that aren’t normally there, mercs for example.
I haven’t found anything on this yet

Nvm I fixed it
(and I won’t tell the solution :trollface:)

Go in data, units, search for barracks (gateway etc.), double click on (Basic) Ability: Command Card to expand column. Then double click on the (Train Marine I Marauder…etc.) and a menu will come up where you see the command card menu. Click on the one you want to remove and press the small red minus symbol on the right hand side of the menu. Good luck!