In a food processor bowl, combine almond flour, confectioner's sugar, cocoa powder, espresso powder and salt.
Pulse in the softened butter or coconut oil and vanilla until a smooth dough comes together.
Gather dough into a disk, wrap in plastic and refrigerate for at least 1 hour.
Preheat oven to 350°. Line 2 baking sheets with parchment paper.
Remove the dough from the refrigerator and while still wrapped, soften gently with your hands.
Unwrap and place the dough disk between two 2 sheets of parchment paper. Use a rolling pin to carefully roll the dough to a ⅛-inch thickness between the sheets of parchment.
Use a heart or other shaped cookie cutter to cut out cookies. Carefully transfer the cut-outs to the baking sheets using a spatula.
Gather up dough scraps and re-roll.
Bake the cookies for about 7 minutes, depending on size. Remove from oven and cool on pans.