Delete Object
No needs anymore for an Object? Just delete it already!

Simple way

Java
Swift
1
import com.parse.ParseObject;
2
3
public void deleteObject(ParseObject object)
4
{
5
object.deleteInBackground();
6
}
Copied!

With Callback

Java
Swift
1
import com.parse.ParseObject;
2
import com.parse.DeleteCallback;
3
import com.parse.ParseException;
4
5
6
public void deleteObject(ParseObject object)
7
{
8
object.deleteInBackground(new DeleteCallback()
9
{
10
@Override
11
public void done(ParseException e)
12
{
13
14
}
15
});
16
}
Copied!
Copy link