Skip to content

custom Section data need to update on cart item delete in magento2

I have created custom section data called test

and create sections.xml file with below code

<?xml version="1.0"?>
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
<action name="*">
    <section name="test"/>
</action>

But it’s not updated on cart item delete

So I have added below line as well and tried but not working

 <action name="checkout/cart/delete">
    <section name="test"/>
</action>

can anyone help on this?