src/SecucardConnect/Client/ProductService.php
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;
    }
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;
    }
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 ; }
Function to delete the model identified by id

@param BaseModel $model
@return bool
@throws ApiError
@throws AuthError
@throws ClientError
@throws GuzzleException
@throws Exception
@internal param string $id default null
Function to delete the model identified by id