Find a Route and how to clear route

Discussion created by gmforthun on Feb 4, 2014
Latest reply on Feb 5, 2014 by JGravois-esristaff
I have used the Find a Route program and it works great.  But I want to have a clear button so that when you click on it the old stops and path are deleted.  I have used onclick = ";" and that does appear to remove the stops and path, however, after I clear the graphics, I click on a new stop and a path is drawn from the last stop from the "cleared" route to the new stop.  Apparently I am not clearing out (deleting) the last stop.  Can anyone tell me how to do this?  Thanks.