Object Reference : Object View and Procedure Reference : Graph
  
 
delete
Removes all objects of specified type from a graph object.
Syntax
graph_name.delete object_type
where object_type includes one or more of the following: ‘line’, ‘shade’, ‘text’, ‘ellipse’, ‘rectangle’, and ‘arrow’.
Examples
The following removes all line and shade objects from GRA1
gra1.delete line shade
To remove all text objects from GRA1:
gra1.delete text
Cross-references
See “Drawing Lines and Arrows” for discussion.
See also Graph::addarrow, Graph::addellipse, Graph::addrect, Graph::addtext, and Graph::delete