I found this link when searching for a solution. It suggests a bugfix in version 1.4.x. Thats a realy old version and i havent been fixed yet?
$.ajax ignoring data param for DELETE requests
The code below works perfectly find on a GET taking exactly the same request parameters. How I call the DELETE method?
var data = {
accessToken : accessToken
}
$.ajax({
type : 'DELETE',
url : "/user/" + userId,
cache : false,
data : data,
success : function(profile) {
$("#account-delete .response-container").html(JSON.stringify(profile, null, 2));
$("#account-delete .request-container").html("/user/?" + $.param(data));
},
error : function(jqXHR, textStatus, errorThrown) {
$("#account-delete .error-container").html(textStatus +" - " + errorThrown);
}
});