public function delete(BaseModel $model)
    {
        if (empty($model->id)) {
            throw new Exception('Cannot delete object with empty primary key value');
        }

        $params = new RequestParams(RequestOps::DELETE, $this->resourceMetadata, $model->id);
        $jsonResponse = $this->request($params);

        if ($jsonResponse == false) {
            throw new Exception('Error deleting data');
        }

        $this->postProcess($jsonResponse);

        return $jsonResponse;
    }