MATLAB: How to delete callback functions for a deleted UI Object in App Designer

MATLAB

I have created an app in App Designer, and I added some UI Objects with some callbacks. I then deleted these objects. Some of the code associated with them was deleted, but their callback functions were not deleted. How can I delete these callbacks?

Best Answer

To delete these functions, navigate to the Code View in App Designer. Then, right click on the callback in the 'Code Browser' pane, under 'Callbacks'.
Right click on the callback, then select 'Delete'.