The code below will take a parameter returned in the server's upload response and ensure it is passed as a parameter when a delete request is sent for the same file:
$("#fine-uploader-container").fineUploader({
callbacks: {
onComplete: function(id, name, response) {
this.setDeleteFileParams({attachment_id: response.attachment_id}, id);
}
}
});
Note that the above code leaves out some required options (such as the request endpoint) in order to focus specifically on the problem at hand.