diff --git a/mcu_plugin.html b/mcu_plugin.html
index 893a9b8..b1ec07f 100644
--- a/mcu_plugin.html
+++ b/mcu_plugin.html
@@ -511,6 +511,15 @@
})
return;
+ },
+
+ onremove: function() {
+ RED.events.off("flows:add", onFlowAdd)
+ RED.events.off("flows:remove", onObjectRemove)
+ RED.events.off("flows:change", onFlowChange)
+ RED.events.off("flows:reorder", onFlowsReorder)
+
+ RED.sidebar.removeTab("node-red-mcu");
}
})