In terms of code formatting this should be `$obj->delete()` (no spaces between the ->)