newbie: need to delete object in loop

Hi, sorry for this rather simplistic question, but I can't think of a
good way of googling the answer (just been trying for 20 mins).
Anyway... so I have this rather simplistic piece of code:

<% for artwork in @artworks %>

<% medium = nil %>