There is accoreconsole that runs in windows operating system level and manipulates dwgs. Yes it could delete text at a point. The other way is using OBDX to manipulate dwgs without opening, 3rd is run a script yes it will open dwg but go to lunch you will be surprised how many it can do in a short time.
I am not seeing where TRACKERS_9 selection set is created. When the alert comes up is their something other then 0?
Its good to define what you want selected. entsel can display a custom message. rather then the default Select entity.
(setq poly (car (entsel "\nSelect Polyline:")))
(setq BlockObj (car (entsel "\nSelect Block to Array:")))
Not 100% but I think.
(vla-delete (vla-item doc "TRACKERS_9"))
your trying to delete the selection set?
(vl-cmdf "_.Erase" "TRACKERS_9")
Lee Mac's Error Message Troubleshooter says: "The program is attempting to access a ActiveX Property or Method with the name as noted in the error message which is not available for the supplied VLA-Object." http://www.lee-mac.com/errormessages.html
Handy reference.