src/Rest/CrudExtendedController.php
public function delete($id): Response
    {
        if ($objectInfo = $this->model->findFirst($id)) {
            if ($this->softDelete == 1) {
                $objectInfo->softDelete();
            } else {
                $objectInfo->delete();
            }

            return $this->response(['Delete Successfully']);
        } else {
            throw new Exception('Record not found');
        }
    }
public function delete($id): Response
    {
        if ($objectInfo = $this->model->findFirst($id)) {
            if ($this->softDelete == 1) {
                $objectInfo->softDelete();
            } else {
                $objectInfo->delete();
            }

            return $this->response(['Delete Successfully']);
        } else {
            throw new Exception('Record not found');
        }
    }
public function delete ( $ id ) : Response { if ( $ objectInfo = $ this -> model -> findFirst ( $ id ) ) { if ( $ this -> softDelete == 1 ) { $ objectInfo -> softDelete ( ) ; } else { $ objectInfo -> delete ( ) ; } return $ this -> response ( [ 'Delete Successfully' ] ) ; } else { throw new Exception ( 'Record not found' ) ; } }
delete a new Entry

@method DELETE
@url /v1/data/{id}

@return \Phalcon\Http\Response
delete a new Entry