How to turn off extruder stepper

M84 E can be used as well, in short it disables just the extruder motor, But yes SET_STEPPER_ENABLE stepper=extruder enable=0
will disable it too. But fyi some mobo’s share one enable for all the motors… some ender’s did (see link)