/** * @param int $id * @return bool */ public function delete($id) { $endpoint = new Delete($this->getTransport()); $endpoint->setId($id); try { $result = $endpoint->performRequest(); } catch (ResourceNotFoundException $e) { return false; } return $result['status'] == 204; }