How can I remove the edit buttons and delete product in the mini-cart based on a specific sku?
I hope you are doing well!
A mini cart is normally defined as a cart icon that discloses order outlines when clicked. You can delete a product and increment or decrement a product from the mini cart itself.
The following are the steps to remove the mini cart action buttons,
If you want to remove product actions div only for some products with specific sku and not for all products, then follow the below steps,
Do not directly change core files. You should override default.html in the custom theme.
And now remove product actions div from default.html. There is two way to see changes in static files. By removing the identical file from Do static-content:deploy OR pub/static
php bin/magento setup:static-content:deploy
Lastly, clean and flush the cache and see the changes.
php bin/magento cache:clean
php bin/magento cache:flush
I hope the above solution will help to resolve the issue.