Desbloquear Xiaomi Encontrado

Hello,
I am following this tutorial todo list, one of the last challenges is to create a delete button by yourself. I attempted to replicate it using the update_todo and doing the opposite. However, the button does not delete the to-do created.