I can commit things with the following javascript, but how can i delete stuff off the server?
mx.data.get(
{
xpath: "//System.FileDocument",
callback: function(objs){
for(var i=0;i<objs.length;i++){
mx.data.commit(
{
mxobj: objs[0],
callback: function() {
console.log("Object committed");
},
error: function(e) {
console.log("Error occurred attempting to commit: "+e);
}
}
);
}
}
}
);
thankyou very much in advance