When I try to delete annotations by first getting the handle of the annotation and then setting the "Text" to the empty string by referring to the documentation Section 'Creating Annotations Programmatically',
h = find_system('test', 'FindAll', 'on', 'Type', 'annotation');set_param(h, 'Name', '');
I receive the following warning and the annotation is not deleted, although the documentation still advocates this method:
Warning: You cannot set an annotation name to an empty string.
Best Answer