Preheat your oven to 350°F (175°C) and grease a 9-inch round cake pan or line it with parchment paper.
In a large mixing bowl, combine the almond flour, baking powder, baking soda, cinnamon, nutmeg, and salt. Mix well.
In another bowl, whisk together the eggs, erythritol, applesauce, and vanilla extract until smooth.
Gradually add the wet ingredients to the dry ingredients, stirring until just combined.
Fold in the grated carrots, walnuts, and shredded coconut if using.
Pour the batter into the prepared cake pan and spread it evenly.
Bake for 25-30 minutes or until a toothpick inserted into the center comes out clean.
Allow the cake to cool in the pan for 10 minutes before transferring it to a wire rack to cool completely.