Wash the sweet potatoes thoroughly, peel them, and boil them.
Mash the boiled sweet potatoes and let them cool.
Add butter and sugar, and mix well with the sweet potatoes.
Add flour and knead into a dough.
Shape the dough into cookies.
Line a baking sheet with parchment paper and place the dough on it.
Bake in a 180°C oven for 20 minutes.