I wonder if there is an easy way to delete a file from Parse.com without using cURL and PHP.
I'm looking for kind of a javascript/jQuery solution, because I'm not really into cURL and PHP.
Has anyone already had the same issue and could give a hint, how to solve this?
I know, I should post some code on SO and what I have tried so far. But I don't really have a starting point, without the compulsion to become aquainted to cURL, REST and PHP.
Any proposal where to start, or hints to tutorials would help.
This post here suggests that you can make a REST call per AJAX.
I tried by:
$.ajax({
url: wohnung.get("Bild"),
X-Parse-Application-Id: 'myId',
X-Parse-Master-Key: 'myKey',
type: 'DELETE',
success: function() { alert('delete completed'); }
});
But it tells me there is an unexpected identifier in the line with the ID. Can't I pass parameters this way!?