AI KILL ENTITY
This command removes the specified entity from the AI system, any DarkBasic object assigned to it remains and should be deleted manually. Other entities will remove this entity from their target list.
AI Kill Entity Entity Number
Entity Number, The id of the entity you want to remove from the AI system.
Try calling "AI Update" immediately after "AI Kill Entity ObjID"
I am still inexperienced with using Dark AI so this is a rough guess...
Also Delete the entity object immediately after...