AnsweredAssumed Answered

I Want to delete some text element but my script is not working

Question asked by GISGURU_001 on Oct 2, 2013
Latest reply on Oct 2, 2013 by GISGURU_001
I created some text element by cloning the original text element, I intend to delete all the cloned text elements after using them but after running my script it does not work at all, any suggestions. The cloned text elements are named Table Text_clone1, Table text_clone2 etc, see my code below

>>> mxd = arcpy.mapping.MapDocument("Current") >>> tableText = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "TableText")[0] >>> for elm in arcpy.mapping.ListLayoutElements(mxd, wildcard="_clone"): ...     elm.delete() ...