var i; for (i = 0; i <= lastitem; i++) { with (op[i]) instance_destroy() } with (op[50]) instance_destroy()