<div>Hi All,</div>
<div> </div>
<div>Does anyone know if it's possible to delete a custom MarkerType using ExtendScript? I'm either very thick today or encountering a bug, because I can't make it work for the life of me. Here's code that I think ought to do the job:</div>

<blockquote style="MARGIN-RIGHT: 0px" dir="ltr">
<blockquote style="MARGIN-RIGHT: 0px" dir="ltr">
<div>var doc = app.ActiveDoc;</div>
<div>var markerType = doc.GetNamedMarkerType('MyMarker');</div>
<div>if (markerType.ObjectValid()) {</div>
<div>    var result = markerType.Delete();</div>
<div>    if (result == Constants.FE_Success) {</div>
<div>        $.write('Delete() method returned success.\n');</div>
<div>    }</div>
<div>}</div>
<div>var markerType = doc.GetNamedMarkerType('MyMarker'); 
<div>$.write('Does marker type still exist after programmatic delete? ' + markerType.ObjectValid() + '\n');</div>
<div> </div></div></blockquote></blockquote>
<div dir="ltr">The results I see in the JavaScript console when I run this on a document containing a custom marker type with the name "MyMarker" are: </div>
<blockquote style="MARGIN-RIGHT: 0px" dir="ltr">
<div dir="ltr">Delete() method returned success.</div>
<div dir="ltr">Does marker type exist after programmatic delete? 1</div>
<div dir="ltr"> </div></blockquote>
<div dir="ltr">Those messages indicate that the delete was successful AND that the MarkerType still exists. I'm assuming this must be a bug. Can anyone confirm or spot an error in my code that I'm too tired to see?</div>

<div dir="ltr"> </div>
<div dir="ltr">Thanks,</div>
<div dir="ltr">Mike</div>