/** * Delete the model from the web service. * * @param string $primaryKey * @return bool|null */ public function delete($primaryKey = null) { if ($this->exists) { $this->client->deleteObject($this->type, $this->key($primaryKey)); $this->exists = false; return true; } }