die

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

See also: clear-turtles clear-links

Take me to the full NetLogo Dictionary