Added delete topic logic.