Are you trying to disable envmon or fru type traps or all traps related to these modules?
SNMP traps are usually global commands, which means they impact all modules/interfaces on a device. If the module isn't there, then traps won't be generated for it.