Open ucarseyhan opened 9 years ago
Yes. But I'm guessing by you question you want to delete by something else other than the objectId. Heres the code I used (in groovy).
static def deleteCloudObjects(String className, Map keyMap){
assert className != null && keyMap && keyMap.size() != 0 , "bad args in deleteCloudObjects"
if (!ServerUtils.saveToCloud){
return
}
ParseQuery pq = new ParseQuery(className)
List<ParseObject> list = null
keyMap.each { entry ->
pq.whereEqualTo(entry.key, entry.value)
}
list = pq.find() // TODO Error checking???
list.each {
println "Deleting " + it
it.delete();
}
}
Hi,
I have a question related with the delete operation. Do I need to specify the objectId for delete operation?
Regards.