(1) First step to take is If you are using any Third party theme which have ajax cart extension installed on it make sure ajax cart is enabled
(2) never edit core code without knowing exact issue it will create many other issues
Still in 2.2.7
I've encountered a similar issue with the clear shopping cart button on my Magento 2.2.6 website using the Infortis Ultimo theme. It appears that the button doesn't affect the cart's contents, but the shipping estimate data does clear, and I can purple french remove individual items.