I want to automatic delete an object

My Konkurrancer model:

```
class Konkurrancer < ActiveRecord::Base
belongs_to :kategori
end

```

I have an column named deadline with a date.
When the deadline is reached I want the object to be deleted.
How should I write the code and where should it go?