Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

ACS Bulk Delete does not work - Bug??

$
0
0

I'm trying to use the ACS bulk delete command in ACS but it is not recognizing the where clause. It will using the rest API but not using the sendRequest method. Is this a known bug?

This does not work

Cloud.sendRequest({
    url : "photos/batch_delete.json",
    method : "DELETE",
    where:{"Category":"States"}
 
}, function(e) {
    if (e.success) {
        alert("All Photo objects have been deleted.");
    } else {
        alert('Error:\n' + ((e.error && e.message) || JSON.stringify(e)));
    }
});
This does
curl -b cookies.txt -c cookies.txt -X DELETE -F "where={\"Category\":\"States\"}" https://api.cloud.appcelerator.com/v1/photos/batch_delete.json?key=mykey

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>