Added deleting of threads and topics