Delete endpoint for topics

ActiveRecord allows for a lot of callbacks that are performed whenever you do certain actions. You define a method somewhere and specify it like this. The database could do this particular case (called a cascade delete), but that gets messy whenever you want to do more than just handle data integrity (e.g. logging deleted records, sending e-mails, etc).