delete product function implementition