update delete.phpp to use rtn parram