Rebuild resource.
Add csrf_token as a parameter to the delete button ajax request.