Peel, core, and cut the apples into small cubes.
In a wide pan, place the cubed apples and cook on high for 2 minutes.
Add the sugar, lemon juice, vanilla, and sugar. Mix well.
Cook for another 5 minutes until the apples start to soften a bit.
Transfer the apples to a colander placed over a bowl to let the liquids out.
Let the apple pie filling cool to room temperature and strain all liquids.
Set the oven to 160°C / 325°F with the fan.
In a bowl, place all the dough ingredients and mix well.
On a lightly floured surface roll the dough.
With a cup or a cookie cutter cut out circles.
Place ½ teaspoon (or a bit more if you make big circles) of filling in the center of each circle and close the dough to a triangular shape cookie.
Bake for 10-12 minutes.
Cool at room temperature.
Have a hamantaschen and Happy Purim!