die Turtle Command Link Command

The turtle or link dies.

if xcor > 20 [ die ]
;; all turtles with xcor greater than 20 die
ask links with [color = blue] [ die ]
;; all the blue links will die

A dead agent ceases to exist. The effects of this include:

See also: clear-turtles clear-links

Take me to the full NetLogo Dictionary