CodeIgniter Shopping Cart – Delete cart items

By using rowid element you can delete an item from cart. you just have to set item’s qty to 0

$deleteItem = array(
    'rowid' => 'b99ccdf16028f015540f341130b6d8ec',
    'qty'   => 0
);

$this->cart->update($data);

this will delete item with this rowid.

if you want to reproduce, please indicate the source:
CodeIgniter Shopping Cart – Delete cart items - CodeDay