I'm using cloudinary to store images. when I try to delete a resource, I get the following error message:
HTTP method DELETE doesn't support output.
my source code:
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setEndpoint('http://api.cloudinary.com/v1_1/'+cloudname+'/image/upload');
req.setMethod('DELETE');
String myData = 'public_id=myPublicId';
Blob hash = Crypto.generateDigest('SHA1',Blob.valueOf(myData));
String hexDigest = EncodingUtil.convertToHex(hash);
String finalBodyString='public_id=myPublicId&api_key='+apikey+'×tamp='+EncodingUtil.urlEncode(tiStmp, 'UTF-8')+'&signature='+EncodingUtil.urlEncode(hexDigest, 'UTF-8');
req.setBody(finalBodyString);
HttpResponse res = h.send(req);