code: function (e, data) {
                  if (e.isDefaultPrevented()) {
                      return false;
                  }
                  var that = $(this).data('blueimp-fileupload') ||
                          $(this).data('fileupload'),
                      removeNode = function () {
                          that._transition(data.context).done(
                              function () {
                                  $(this).remove();
                                  that._trigger('destroyed', e, data);
                              }
                          );
                      };
                  if (data.url) {
                      data.dataType = data.dataType || that.options.dataType;
                      $.ajax(data).done(removeNode).fail(function () {
                          that._trigger('destroyfailed', e, data);
                      });
                  } else {
                      removeNode();
                  }
              }
docs: Callback for file deletion: