Skip to content

Deleting Multiple Objects in One API Request

A feature that has been requested a lot is the ability to delete multiple objects with a single call to Parse. Based on this feedback, we've added the deleteAll methods to the iOS/OS X and Android SDKs. Just like with saveAll and fetchAll, you pass in an array of Parse Objects, but in this case they will be deleted from Parse.

For iOS or OS X:

// Accepts an NSArray containing one or more PFObject instances
[PFObject deleteAllInBackground:@[object1, object2, object3]];

Or for Android:

// Accepts a parameter of type: List<ParseObject>

Class-level and Object-level permissions are still enforced here, so this will not delete objects unless the current user has write access.