Disable stop loss orders after market

What is the best way to disable trailing stop loss orders during after market hours or only have trailing stop loss active during US market hours? Is there a good way or should we simply cancel all open stop loss orders before market close? Is there an easy way to do this other than iterating through each stop loss order, like cancel all open stop loss orders? Alternatively, is there a way to specify that stop loss orders should only be active during US market hours?