Destroy function for topics, posts, and comments