Destroys the specified object in the collection.
object expression.Destroy (Value)
object expression Required. An object expression that evaluates to an object in the Applies To list.
Value Required Variant. Either an Bot, Bot name (string), or ordinal index (integer) of a Bot.
If the parameter Value evaluates to an integer, then the Bot with the associated index position within the collection is destroyed. If it evaluates to a string, then the Bot with the associated Name is destroyed.
The following example destroys all Bot objects whose age is greater than 100.
For Each Bot in Bots
If Bot.Age > 100 Then Bots.Destroy Bot
Next Bot