Having trouble removing a user from the _User table on parse.com and encountering an error.
Confident in the correctness of my request syntax, yet receiving the following error:
code: 206
error: "Parse::UserCannotBeAlteredWithoutSessionError"
Believe that I should not have to log in to delete users since I am using API REST.
$scope.delete = function (id) {
$http({
method: "DELETE",
url: url_users + id,
headers: {'X-Parse-Application-Id': appId,
'X-Parse-REST-API-Key': restId}
}).success(function (data) {
debugger;
swal("Deleted!", "All user data has been erased", "success");
}).error(function (data) {
debugger;
swal("Error!", "An unexpected error occurred, please try again!", "error");
});
}