Hard delete item

The actual deleting is not working, and I need help to figure out why it's not working. I tried putting the logger right before the query (because I thought it was simply the query that was wrongly written), but the debug is not even getting there... and I'm not sure why.

What is missing/have done wrong?