How to delete of commands if device is ofline?

I’d appreciate any help, thanks!!!
I have an ikea bulb. And I controlled my lamp with “node-red”.
When I turn OFF the ikea bulb from the wall switch and start control it from the phone/remote control, it seems to me like all the commands that did not reach the lamp they are in anticipation and when I turn ON the lamp from the wall switch and all commands start working at once! Which leads to freez of zigbee2mqtt service!
Maybe exist is a command in “zigbee2mqtt” that removes all commands with have not reached the “addressee”?
At the moment i have to restart the zigbee2mqtt.service for clear the all commands that did not reach earlier.