The turtle or link dies.
if xcor > 20 [ die ] ;; all turtles with xcor greater than 20 die ask links with [color = blue] [ die ] ;; all blue links die
See also: clear-turtles clear-links
Take me to the full NetLogo Dictionary