To dispose of a DevExtreme widget, free up the allocated resources by calling the dispose() method. Then, remove the widget's associated DOM node:
$("#menuContainer").dxMenu("dispose"); $("#menuContainer").remove();
Additional comments/thoughts:
If you have any questions, submit a ticket to our Support Center.