Hello! I believe currently you can use the "Set Dialogue" function to achieve this by selecting "(None)" from the dropdown in the visual editor or by specifying an empty string for the dialogue name if you are using a quick script. For example:
set_dialogue("npc_id", "")
There's no way to do it yet for object scripts, so I will make a note to get that functionality added. It should be very simple. :)