public static function delete(Entity $object) { if (!ApiConnector::deleteObject($object)) { throw new \Exception('Penneo: Could not delete the ' . get_class($object)); } unset($object->id); }
public static function delete($id) { return (bool) ApiConnector::callServer('message/' . $id, null, 'delete'); }