Data-attributes sent to delete button

Data attributes set in delete button, corrected delete statement in
controller. However, ajax call fails, on click goes to error function.