Removing unused logs