zeeshangrw

How to delete line ?

Discussion created by zeeshangrw on Nov 23, 2010
Latest reply on Dec 9, 2010 by zeeshangrw
i am drawing line using this code reference from

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm

var myLine ={geometry:{"paths":[[[-91.40625,6.328125],[6.328125,19.3359375]]],
  "spatialReference":{"wkid":4326}},
  "symbol":{"color":[0,0,0,255],"width":1,"type":"esriSLS","style":"esriSLSSolid"}};
var gra= new esri.Graphic(myLine);
map.graphics.add(gra);

How can i delete the line if i am trying to draw in above mention way.
The samples for deleting graphics method is not clear if we are drawing using inputs parameters. Can some one help us through code.

Outcomes