Reputation: 661
how can I delete a file in Parse? I try to delete them through the REST API but it doesn't work.
I always get this error:
"Cannot DELETE /parse/files/appName/e462b99d0e7ed9b98d837493d95c102d_profilePicture.jpg\n"
I'm using Parse on a Ubuntu 16.04 system, Parse version is 2.2.23.
Upvotes: 1
Views: 1116
Reputation: 1495
This solution is for parse server. parse.com shut down
first remove 'appName' from your link then use this code
curl -X DELETE
-H "X-Parse-Application-Id: $appid"
-H "X-Parse-Master-Key: $masterKey"
http://myAPP.herokuapp.com/parse/files/e462b99d0e7ed9b98d837493d95c102d_profilePicture.jpg
This is source link https://github.com/ParsePlatform/parse-server/issues/1411
Upvotes: 2