Everything is working except the delete

I think there is something wrong with the php file cause console.log is
working