Created destroy functionality for topics.