I'm working on deleting a PFObject in Parse.com. However, I already have the object ID.
Is there a way to delete the entire entry based on the Object ID without doing a PFQuery for the object ID first?
You can use objectWithoutDataWithClassName:objectId:
to create an empty object representing your object on the server with that id. Then you can delete and save that object.
let thisGoal = PFObject(className: "ParseClassName")
thisGoal.objectId = savedObjectIdValue
thisGoal.deleteInBackground()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.