Vanilla extract is not necessary in terms of the structure of a baking recipe. However, leaving it out of a recipe will change the flavor. Vanilla extract enhances the flavor in cookies, cakes, and muffins and other recipes.